{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import time\n",
    "import requests\n",
    "from bs4 import BeautifulSoup\n",
    "import util\n",
    "import random\n",
    "import re \n",
    "import json"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 获取所有小区楼盘数据的主链接"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_all_xqlb_link():\n",
    "    \"\"\"获取所有小区楼盘的链接\"\"\"\n",
    "    base_url = 'https://suzhou.anjuke.com/community/p1/p{}/'\n",
    "\n",
    "    all_xqlb_links = set()\n",
    "    for page in range(1, 51):\n",
    "        url = base_url.format(page)\n",
    "        headers = {\n",
    "            'user-agent': util.get_random_user_agent(),\n",
    "            'accept-language': 'zh-CN,zh;q=0.9',\n",
    "            'cache-control': 'max-age=0',\n",
    "            'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'\n",
    "        }\n",
    "        response = requests.get(url, headers=headers)\n",
    "        response.encoding = 'utf8'\n",
    "        soup = BeautifulSoup(response.text, 'lxml')\n",
    "\n",
    "        all_xqlb = soup.find_all('div', attrs={'_soj': 'xqlb'})\n",
    "\n",
    "        for xqlb in all_xqlb:\n",
    "            all_xqlb_links.add(xqlb['link'])\n",
    "        \n",
    "        print('after crawling', url, ':', len(all_xqlb_links))\n",
    "        time.sleep(random.random()+1)\n",
    "\n",
    "    return all_xqlb_links"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "after crawling https://suzhou.anjuke.com/community/p1/p1/ : 30\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p2/ : 60\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p3/ : 90\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p4/ : 120\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p5/ : 150\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p6/ : 180\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p7/ : 210\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p8/ : 240\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p9/ : 270\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p10/ : 300\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p11/ : 330\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p12/ : 360\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p13/ : 360\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p14/ : 390\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p15/ : 420\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p16/ : 450\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p17/ : 480\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p18/ : 510\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p19/ : 540\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p20/ : 570\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p21/ : 600\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p22/ : 630\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p23/ : 660\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p24/ : 690\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p25/ : 720\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p26/ : 750\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p27/ : 780\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p28/ : 810\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p29/ : 840\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p30/ : 870\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p31/ : 899\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p32/ : 929\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p33/ : 959\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p34/ : 989\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p35/ : 1018\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p36/ : 1047\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p37/ : 1077\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p38/ : 1107\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p39/ : 1137\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p40/ : 1167\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p41/ : 1197\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p42/ : 1227\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p43/ : 1257\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p44/ : 1287\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p45/ : 1317\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p46/ : 1347\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p47/ : 1377\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p48/ : 1407\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p49/ : 1437\n",
      "after crawling https://suzhou.anjuke.com/community/p1/p50/ : 1467\n"
     ]
    }
   ],
   "source": [
    "all_xqlb_links = get_all_xqlb_link()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [],
   "source": [
    "all_xqlb_links = list(all_xqlb_links)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "共爬取 1467 条不重复的楼盘数据\n"
     ]
    }
   ],
   "source": [
    "print('共爬取 {} 条不重复的楼盘数据'.format(len(all_xqlb_links)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_all_house_links(xqlb_link):\n",
    "    \"\"\"获取该小区楼盘的所有在售房屋链接\"\"\"\n",
    "    xqlb_code = xqlb_link.split('/')[-1]\n",
    "    url = 'https://suzhou.anjuke.com/community/props/sale/{}/?spread=commprop&position=1&click_url=https://lego-click.anjuke.com/jump?target=pZwY0ZnlsztdraOWUvYKuaYkm19LnjPhuBYzP1bQsHEYnAcVmWbkPBYzm193nj0YPjnLm19KnWc3njNzrTDKnHcYnWDQnWE3rHTLnjNOnkDzPjTknTDzPjTknTDQsjD1THDkPTDQPH9znH0QnjTQnjc1THDKwbnVNDnVENGsOsJnOChsOCB4sXykWSyn88h6VXilWrpFBSpcfSpcfSplbryc-SB6JTDQTHDKTiYQTEDQnWnkn1nznW0LP1DzPHTzP19YTHmKXA-6UL7diyElnHTkPWmOP1bzTHDKPAD1uAmzrymVPHcvuiYYPvRhsH9zuWEVnh7hmWK6uWw6uj0kTHDzn1T1n1czP103n1EQn10vnjDKnHc1njn1nWcLP10LnHczn1TYnTDKTEDKTiYKTE7CIZwk01CfsLPdXh6fIiO6UhGdpvN8mvqVsvPfUyddUh-YXiqk0hqk0zq1myQ-s1DknjTLPWDfTHm3EbmkwjbksHn1PbNVP16jPzdjEH6DsHELEHN1rHFAPHmzE9DznWn8nHTYsWn8PjcKnTDkTEDQsjD1TgVqTHDknjndTHDknjDvPHTKujmzPjPBrH0Vm1TkPaYYmWNQsH9drHDVnHRWujmLnjnvnhwWTEDYTEDKnkDQnjE_nHcdrakQnHmOnHNKn97WnH0kPjuhujPhrAFWujTO&from=commzu'.format(xqlb_code)\n",
    "\n",
    "    headers = {\n",
    "        'accept': '*/*',\n",
    "        'accept-encoding': 'gzip, deflate, br',\n",
    "        'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',\n",
    "        'cookie': 'sessid=08D91723-37C5-453D-7ABC-8A9BF37F999E; aQQ_ajkguid=68BF0D90-336E-78C7-CA8D-47A5392F562B; lps=http%3A%2F%2Fsuzhou.anjuke.com%2Fmarket%7Chttps%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D7XM-380vWFgagNC5ukas6apKUcXO6ck-cprY021q6qEUIQV0oMmNHwwedazMVSmA%26ck%3D8728.1.8.255.233.269.237.743%26shh%3Dwww.baidu.com%26sht%3D02003390_43_hao_pg%26wd%3D%26eqid%3D8da5d22900033baa000000035e4df41b; ctid=19; twe=2; 58tj_uuid=7a0db2eb-1e28-4f2e-a165-ed315faf38bf; init_refer=https%253A%252F%252Fwww.baidu.com%252Flink%253Furl%253D7XM-380vWFgagNC5ukas6apKUcXO6ck-cprY021q6qEUIQV0oMmNHwwedazMVSmA%2526ck%253D8728.1.8.255.233.269.237.743%2526shh%253Dwww.baidu.com%2526sht%253D02003390_43_hao_pg%2526wd%253D%2526eqid%253D8da5d22900033baa000000035e4df41b; new_uv=1; wmda_uuid=17d51d8b57e81f4365ea91ea0e3f37d0; wmda_new_uuid=1; wmda_session_id_6289197098934=1582167087121-2ec5760c-e8f1-fec0; wmda_visited_projects=%3B6289197098934; als=0; new_session=0; ajk_member_captcha=f1de250c288c0c20646940c4404457f6; _ga=GA1.2.1359141188.1582167400; _gid=GA1.2.146639622.1582167400; browse_comm_ids=781514%7C1000761%7C876459%7C585625%7C165699; _gat=1; xzfzqtoken=r0hEkr3OuP5%2Fb%2F6%2FEnvg58D7DHyZvA48C2EtL19QQCWxQE48bY4bZaOXcIX6NFaFin35brBb%2F%2FeSODvMgkQULA%3D%3D; propertys=vj8uze-q5zgbk_vswql2-q5zg3s_vor26f-q5zfsg_wit9o8-q5zfos_wccvrp-q5zcdl_wl7wfw-q5zc63_',\n",
    "        'referer': url,\n",
    "        'sec-fetch-dest': 'empty',\n",
    "        'sec-fetch-mode': 'cors',\n",
    "        'sec-fetch-site': 'same-origin',\n",
    "        'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36'\n",
    "    }\n",
    "\n",
    "    response = requests.get(url, headers=headers)\n",
    "    response.encoding = 'utf8'\n",
    "    soup = BeautifulSoup(response.text, 'lxml')\n",
    "    \n",
    "    all_house = soup.find_all('a', attrs={'_soj': 'commzu'})\n",
    "    \n",
    "    return [a['href'] for a in all_house[:10]]\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [],
   "source": [
    "all_house_links = set()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "小区楼盘 0: 10 房子，一共: 10 房子\n",
      "小区楼盘 1: 10 房子，一共: 20 房子\n",
      "小区楼盘 2: 10 房子，一共: 30 房子\n",
      "小区楼盘 3: 10 房子，一共: 40 房子\n",
      "小区楼盘 4: 10 房子，一共: 50 房子\n",
      "小区楼盘 5: 10 房子，一共: 60 房子\n",
      "小区楼盘 6: 10 房子，一共: 70 房子\n",
      "小区楼盘 7: 10 房子，一共: 80 房子\n",
      "小区楼盘 8: 10 房子，一共: 90 房子\n",
      "小区楼盘 9: 10 房子，一共: 100 房子\n",
      "小区楼盘 10: 10 房子，一共: 110 房子\n",
      "小区楼盘 11: 10 房子，一共: 120 房子\n",
      "小区楼盘 12: 10 房子，一共: 130 房子\n",
      "小区楼盘 13: 10 房子，一共: 140 房子\n",
      "小区楼盘 14: 10 房子，一共: 150 房子\n",
      "小区楼盘 15: 10 房子，一共: 160 房子\n",
      "小区楼盘 16: 10 房子，一共: 170 房子\n",
      "小区楼盘 17: 10 房子，一共: 180 房子\n",
      "小区楼盘 18: 10 房子，一共: 190 房子\n",
      "小区楼盘 19: 10 房子，一共: 200 房子\n",
      "小区楼盘 20: 10 房子，一共: 210 房子\n",
      "小区楼盘 21: 10 房子，一共: 220 房子\n",
      "小区楼盘 22: 10 房子，一共: 230 房子\n",
      "小区楼盘 23: 10 房子，一共: 240 房子\n",
      "小区楼盘 24: 10 房子，一共: 250 房子\n",
      "小区楼盘 25: 10 房子，一共: 260 房子\n",
      "小区楼盘 26: 10 房子，一共: 270 房子\n",
      "小区楼盘 27: 10 房子，一共: 280 房子\n",
      "小区楼盘 28: 7 房子，一共: 287 房子\n",
      "小区楼盘 29: 10 房子，一共: 297 房子\n",
      "小区楼盘 30: 10 房子，一共: 307 房子\n",
      "小区楼盘 31: 10 房子，一共: 317 房子\n",
      "小区楼盘 32: 10 房子，一共: 327 房子\n",
      "小区楼盘 33: 10 房子，一共: 337 房子\n",
      "小区楼盘 34: 10 房子，一共: 347 房子\n",
      "小区楼盘 35: 10 房子，一共: 357 房子\n",
      "小区楼盘 36: 10 房子，一共: 367 房子\n",
      "小区楼盘 37: 10 房子，一共: 377 房子\n",
      "小区楼盘 38: 10 房子，一共: 387 房子\n",
      "小区楼盘 39: 10 房子，一共: 397 房子\n",
      "小区楼盘 40: 10 房子，一共: 407 房子\n",
      "小区楼盘 41: 10 房子，一共: 417 房子\n",
      "小区楼盘 42: 10 房子，一共: 427 房子\n",
      "小区楼盘 43: 7 房子，一共: 434 房子\n",
      "小区楼盘 44: 10 房子，一共: 444 房子\n",
      "小区楼盘 45: 10 房子，一共: 454 房子\n",
      "小区楼盘 46: 10 房子，一共: 464 房子\n",
      "小区楼盘 47: 10 房子，一共: 474 房子\n",
      "小区楼盘 48: 10 房子，一共: 484 房子\n",
      "小区楼盘 49: 10 房子，一共: 494 房子\n",
      "小区楼盘 50: 10 房子，一共: 504 房子\n",
      "小区楼盘 51: 10 房子，一共: 514 房子\n",
      "小区楼盘 52: 10 房子，一共: 524 房子\n",
      "小区楼盘 53: 10 房子，一共: 534 房子\n",
      "小区楼盘 54: 10 房子，一共: 544 房子\n",
      "小区楼盘 55: 10 房子，一共: 554 房子\n",
      "小区楼盘 56: 10 房子，一共: 564 房子\n",
      "小区楼盘 57: 10 房子，一共: 574 房子\n",
      "小区楼盘 58: 10 房子，一共: 584 房子\n",
      "小区楼盘 59: 10 房子，一共: 594 房子\n",
      "小区楼盘 60: 10 房子，一共: 604 房子\n",
      "小区楼盘 61: 10 房子，一共: 614 房子\n",
      "小区楼盘 62: 10 房子，一共: 624 房子\n",
      "小区楼盘 63: 10 房子，一共: 634 房子\n",
      "小区楼盘 64: 7 房子，一共: 641 房子\n",
      "小区楼盘 65: 10 房子，一共: 651 房子\n",
      "小区楼盘 66: 10 房子，一共: 661 房子\n",
      "小区楼盘 67: 10 房子，一共: 671 房子\n",
      "小区楼盘 68: 10 房子，一共: 681 房子\n",
      "小区楼盘 69: 10 房子，一共: 691 房子\n",
      "小区楼盘 70: 10 房子，一共: 701 房子\n",
      "小区楼盘 71: 10 房子，一共: 711 房子\n",
      "小区楼盘 72: 10 房子，一共: 721 房子\n",
      "小区楼盘 73: 10 房子，一共: 731 房子\n",
      "小区楼盘 74: 10 房子，一共: 741 房子\n",
      "小区楼盘 75: 10 房子，一共: 751 房子\n",
      "小区楼盘 76: 10 房子，一共: 761 房子\n",
      "小区楼盘 77: 10 房子，一共: 771 房子\n",
      "小区楼盘 78: 10 房子，一共: 781 房子\n",
      "小区楼盘 79: 10 房子，一共: 791 房子\n",
      "小区楼盘 80: 3 房子，一共: 794 房子\n",
      "小区楼盘 81: 10 房子，一共: 804 房子\n",
      "小区楼盘 82: 8 房子，一共: 812 房子\n",
      "小区楼盘 83: 10 房子，一共: 822 房子\n",
      "小区楼盘 84: 10 房子，一共: 832 房子\n",
      "小区楼盘 85: 10 房子，一共: 842 房子\n",
      "小区楼盘 86: 10 房子，一共: 852 房子\n",
      "小区楼盘 87: 10 房子，一共: 862 房子\n",
      "小区楼盘 88: 10 房子，一共: 872 房子\n",
      "小区楼盘 89: 10 房子，一共: 882 房子\n",
      "小区楼盘 90: 10 房子，一共: 892 房子\n",
      "小区楼盘 91: 10 房子，一共: 902 房子\n",
      "小区楼盘 92: 10 房子，一共: 912 房子\n",
      "小区楼盘 93: 6 房子，一共: 918 房子\n",
      "小区楼盘 94: 6 房子，一共: 924 房子\n",
      "小区楼盘 95: 10 房子，一共: 934 房子\n",
      "小区楼盘 96: 10 房子，一共: 944 房子\n",
      "小区楼盘 97: 10 房子，一共: 954 房子\n",
      "小区楼盘 98: 10 房子，一共: 964 房子\n",
      "小区楼盘 99: 10 房子，一共: 974 房子\n",
      "小区楼盘 100: 6 房子，一共: 980 房子\n",
      "小区楼盘 101: 10 房子，一共: 990 房子\n",
      "小区楼盘 102: 10 房子，一共: 1000 房子\n",
      "小区楼盘 103: 10 房子，一共: 1010 房子\n",
      "小区楼盘 104: 10 房子，一共: 1020 房子\n",
      "小区楼盘 105: 10 房子，一共: 1030 房子\n",
      "小区楼盘 106: 10 房子，一共: 1040 房子\n",
      "小区楼盘 107: 8 房子，一共: 1048 房子\n",
      "小区楼盘 108: 10 房子，一共: 1058 房子\n",
      "小区楼盘 109: 10 房子，一共: 1068 房子\n",
      "小区楼盘 110: 10 房子，一共: 1078 房子\n",
      "小区楼盘 111: 10 房子，一共: 1088 房子\n",
      "小区楼盘 112: 10 房子，一共: 1098 房子\n",
      "小区楼盘 113: 10 房子，一共: 1108 房子\n",
      "小区楼盘 114: 10 房子，一共: 1118 房子\n",
      "小区楼盘 115: 10 房子，一共: 1128 房子\n",
      "小区楼盘 116: 10 房子，一共: 1138 房子\n",
      "小区楼盘 117: 10 房子，一共: 1148 房子\n",
      "小区楼盘 118: 10 房子，一共: 1158 房子\n",
      "小区楼盘 119: 10 房子，一共: 1168 房子\n",
      "小区楼盘 120: 10 房子，一共: 1178 房子\n",
      "小区楼盘 121: 10 房子，一共: 1188 房子\n",
      "小区楼盘 122: 4 房子，一共: 1192 房子\n",
      "小区楼盘 123: 10 房子，一共: 1202 房子\n",
      "小区楼盘 124: 10 房子，一共: 1212 房子\n",
      "小区楼盘 125: 10 房子，一共: 1222 房子\n",
      "小区楼盘 126: 10 房子，一共: 1232 房子\n",
      "小区楼盘 127: 10 房子，一共: 1242 房子\n",
      "小区楼盘 128: 10 房子，一共: 1252 房子\n",
      "小区楼盘 129: 10 房子，一共: 1262 房子\n",
      "小区楼盘 130: 10 房子，一共: 1272 房子\n",
      "小区楼盘 131: 10 房子，一共: 1282 房子\n",
      "小区楼盘 132: 10 房子，一共: 1292 房子\n",
      "小区楼盘 133: 10 房子，一共: 1302 房子\n",
      "小区楼盘 134: 10 房子，一共: 1312 房子\n",
      "小区楼盘 135: 4 房子，一共: 1316 房子\n",
      "小区楼盘 136: 10 房子，一共: 1326 房子\n",
      "小区楼盘 137: 10 房子，一共: 1336 房子\n",
      "小区楼盘 138: 9 房子，一共: 1345 房子\n",
      "小区楼盘 139: 10 房子，一共: 1355 房子\n",
      "小区楼盘 140: 10 房子，一共: 1365 房子\n",
      "小区楼盘 141: 10 房子，一共: 1375 房子\n",
      "小区楼盘 142: 10 房子，一共: 1385 房子\n",
      "小区楼盘 143: 10 房子，一共: 1395 房子\n",
      "小区楼盘 144: 10 房子，一共: 1405 房子\n",
      "小区楼盘 145: 10 房子，一共: 1415 房子\n",
      "小区楼盘 146: 10 房子，一共: 1425 房子\n",
      "小区楼盘 147: 10 房子，一共: 1435 房子\n",
      "小区楼盘 148: 10 房子，一共: 1445 房子\n",
      "小区楼盘 149: 10 房子，一共: 1455 房子\n",
      "小区楼盘 150: 10 房子，一共: 1465 房子\n",
      "小区楼盘 151: 10 房子，一共: 1475 房子\n",
      "小区楼盘 152: 10 房子，一共: 1485 房子\n",
      "小区楼盘 153: 10 房子，一共: 1495 房子\n",
      "小区楼盘 154: 10 房子，一共: 1505 房子\n",
      "小区楼盘 155: 10 房子，一共: 1515 房子\n",
      "小区楼盘 156: 10 房子，一共: 1525 房子\n",
      "小区楼盘 157: 10 房子，一共: 1535 房子\n",
      "小区楼盘 158: 4 房子，一共: 1539 房子\n",
      "小区楼盘 159: 10 房子，一共: 1549 房子\n",
      "小区楼盘 160: 10 房子，一共: 1559 房子\n",
      "小区楼盘 161: 10 房子，一共: 1569 房子\n",
      "小区楼盘 162: 10 房子，一共: 1579 房子\n",
      "小区楼盘 163: 10 房子，一共: 1589 房子\n",
      "小区楼盘 164: 10 房子，一共: 1599 房子\n",
      "小区楼盘 165: 10 房子，一共: 1609 房子\n",
      "小区楼盘 166: 10 房子，一共: 1619 房子\n",
      "小区楼盘 167: 10 房子，一共: 1629 房子\n",
      "小区楼盘 168: 10 房子，一共: 1639 房子\n",
      "小区楼盘 169: 10 房子，一共: 1649 房子\n",
      "小区楼盘 170: 10 房子，一共: 1659 房子\n",
      "小区楼盘 171: 10 房子，一共: 1669 房子\n",
      "小区楼盘 172: 10 房子，一共: 1679 房子\n",
      "小区楼盘 173: 10 房子，一共: 1689 房子\n",
      "小区楼盘 174: 10 房子，一共: 1699 房子\n",
      "小区楼盘 175: 10 房子，一共: 1709 房子\n",
      "小区楼盘 176: 10 房子，一共: 1719 房子\n",
      "小区楼盘 177: 10 房子，一共: 1729 房子\n",
      "小区楼盘 178: 10 房子，一共: 1739 房子\n",
      "小区楼盘 179: 10 房子，一共: 1749 房子\n",
      "小区楼盘 180: 10 房子，一共: 1759 房子\n",
      "小区楼盘 181: 10 房子，一共: 1769 房子\n",
      "小区楼盘 182: 10 房子，一共: 1779 房子\n",
      "小区楼盘 183: 10 房子，一共: 1789 房子\n",
      "小区楼盘 184: 10 房子，一共: 1799 房子\n",
      "小区楼盘 185: 10 房子，一共: 1809 房子\n",
      "小区楼盘 186: 10 房子，一共: 1819 房子\n",
      "小区楼盘 187: 10 房子，一共: 1829 房子\n",
      "小区楼盘 188: 10 房子，一共: 1839 房子\n",
      "小区楼盘 189: 10 房子，一共: 1849 房子\n",
      "小区楼盘 190: 10 房子，一共: 1859 房子\n",
      "小区楼盘 191: 7 房子，一共: 1866 房子\n",
      "小区楼盘 192: 10 房子，一共: 1876 房子\n",
      "小区楼盘 193: 10 房子，一共: 1886 房子\n",
      "小区楼盘 194: 10 房子，一共: 1896 房子\n",
      "小区楼盘 195: 4 房子，一共: 1900 房子\n",
      "小区楼盘 196: 10 房子，一共: 1910 房子\n",
      "小区楼盘 197: 10 房子，一共: 1920 房子\n",
      "小区楼盘 198: 10 房子，一共: 1930 房子\n",
      "小区楼盘 199: 10 房子，一共: 1940 房子\n",
      "小区楼盘 200: 10 房子，一共: 1950 房子\n",
      "小区楼盘 201: 10 房子，一共: 1960 房子\n",
      "小区楼盘 202: 10 房子，一共: 1970 房子\n",
      "小区楼盘 203: 10 房子，一共: 1980 房子\n",
      "小区楼盘 204: 10 房子，一共: 1990 房子\n",
      "小区楼盘 205: 10 房子，一共: 2000 房子\n",
      "小区楼盘 206: 8 房子，一共: 2008 房子\n",
      "小区楼盘 207: 10 房子，一共: 2018 房子\n",
      "小区楼盘 208: 6 房子，一共: 2024 房子\n",
      "小区楼盘 209: 10 房子，一共: 2034 房子\n",
      "小区楼盘 210: 10 房子，一共: 2044 房子\n",
      "小区楼盘 211: 10 房子，一共: 2054 房子\n",
      "小区楼盘 212: 10 房子，一共: 2064 房子\n",
      "小区楼盘 213: 10 房子，一共: 2074 房子\n",
      "小区楼盘 214: 10 房子，一共: 2084 房子\n",
      "小区楼盘 215: 8 房子，一共: 2092 房子\n",
      "小区楼盘 216: 7 房子，一共: 2099 房子\n",
      "小区楼盘 217: 10 房子，一共: 2109 房子\n",
      "小区楼盘 218: 10 房子，一共: 2119 房子\n",
      "小区楼盘 219: 10 房子，一共: 2129 房子\n",
      "小区楼盘 220: 10 房子，一共: 2139 房子\n",
      "小区楼盘 221: 10 房子，一共: 2149 房子\n",
      "小区楼盘 222: 10 房子，一共: 2159 房子\n",
      "小区楼盘 223: 10 房子，一共: 2169 房子\n",
      "小区楼盘 224: 10 房子，一共: 2179 房子\n",
      "小区楼盘 225: 10 房子，一共: 2189 房子\n",
      "小区楼盘 226: 10 房子，一共: 2199 房子\n",
      "小区楼盘 227: 10 房子，一共: 2209 房子\n",
      "小区楼盘 228: 10 房子，一共: 2219 房子\n",
      "小区楼盘 229: 10 房子，一共: 2229 房子\n",
      "小区楼盘 230: 10 房子，一共: 2239 房子\n",
      "小区楼盘 231: 10 房子，一共: 2249 房子\n",
      "小区楼盘 232: 8 房子，一共: 2257 房子\n",
      "小区楼盘 233: 10 房子，一共: 2267 房子\n",
      "小区楼盘 234: 10 房子，一共: 2277 房子\n",
      "小区楼盘 235: 10 房子，一共: 2287 房子\n",
      "小区楼盘 236: 10 房子，一共: 2297 房子\n",
      "小区楼盘 237: 10 房子，一共: 2307 房子\n",
      "小区楼盘 238: 10 房子，一共: 2317 房子\n",
      "小区楼盘 239: 10 房子，一共: 2327 房子\n",
      "小区楼盘 240: 10 房子，一共: 2337 房子\n",
      "小区楼盘 241: 10 房子，一共: 2347 房子\n",
      "小区楼盘 242: 10 房子，一共: 2357 房子\n",
      "小区楼盘 243: 10 房子，一共: 2367 房子\n",
      "小区楼盘 244: 10 房子，一共: 2377 房子\n",
      "小区楼盘 245: 10 房子，一共: 2387 房子\n",
      "小区楼盘 246: 10 房子，一共: 2397 房子\n",
      "小区楼盘 247: 6 房子，一共: 2403 房子\n",
      "小区楼盘 248: 10 房子，一共: 2413 房子\n",
      "小区楼盘 249: 10 房子，一共: 2423 房子\n",
      "小区楼盘 250: 10 房子，一共: 2433 房子\n",
      "小区楼盘 251: 4 房子，一共: 2437 房子\n",
      "小区楼盘 252: 10 房子，一共: 2447 房子\n",
      "小区楼盘 253: 10 房子，一共: 2457 房子\n",
      "小区楼盘 254: 10 房子，一共: 2467 房子\n",
      "小区楼盘 255: 10 房子，一共: 2477 房子\n",
      "小区楼盘 256: 10 房子，一共: 2487 房子\n",
      "小区楼盘 257: 10 房子，一共: 2497 房子\n",
      "小区楼盘 258: 10 房子，一共: 2507 房子\n",
      "小区楼盘 259: 10 房子，一共: 2517 房子\n",
      "小区楼盘 260: 10 房子，一共: 2527 房子\n",
      "小区楼盘 261: 10 房子，一共: 2537 房子\n",
      "小区楼盘 262: 10 房子，一共: 2547 房子\n",
      "小区楼盘 263: 10 房子，一共: 2557 房子\n",
      "小区楼盘 264: 10 房子，一共: 2567 房子\n",
      "小区楼盘 265: 10 房子，一共: 2577 房子\n",
      "小区楼盘 266: 10 房子，一共: 2587 房子\n",
      "小区楼盘 267: 10 房子，一共: 2597 房子\n",
      "小区楼盘 268: 10 房子，一共: 2607 房子\n",
      "小区楼盘 269: 10 房子，一共: 2617 房子\n",
      "小区楼盘 270: 10 房子，一共: 2627 房子\n",
      "小区楼盘 271: 10 房子，一共: 2637 房子\n",
      "小区楼盘 272: 10 房子，一共: 2647 房子\n",
      "小区楼盘 273: 10 房子，一共: 2657 房子\n",
      "小区楼盘 274: 10 房子，一共: 2667 房子\n",
      "小区楼盘 275: 10 房子，一共: 2677 房子\n",
      "小区楼盘 276: 10 房子，一共: 2687 房子\n",
      "小区楼盘 277: 10 房子，一共: 2697 房子\n",
      "小区楼盘 278: 10 房子，一共: 2707 房子\n",
      "小区楼盘 279: 10 房子，一共: 2717 房子\n",
      "小区楼盘 280: 10 房子，一共: 2727 房子\n",
      "小区楼盘 281: 10 房子，一共: 2737 房子\n",
      "小区楼盘 282: 10 房子，一共: 2747 房子\n",
      "小区楼盘 283: 10 房子，一共: 2757 房子\n",
      "小区楼盘 284: 5 房子，一共: 2762 房子\n",
      "小区楼盘 285: 10 房子，一共: 2772 房子\n",
      "小区楼盘 286: 10 房子，一共: 2782 房子\n",
      "小区楼盘 287: 10 房子，一共: 2792 房子\n",
      "小区楼盘 288: 10 房子，一共: 2802 房子\n",
      "小区楼盘 289: 10 房子，一共: 2812 房子\n",
      "小区楼盘 290: 10 房子，一共: 2822 房子\n",
      "小区楼盘 291: 10 房子，一共: 2832 房子\n",
      "小区楼盘 292: 10 房子，一共: 2842 房子\n",
      "小区楼盘 293: 10 房子，一共: 2852 房子\n",
      "小区楼盘 294: 10 房子，一共: 2862 房子\n",
      "小区楼盘 295: 10 房子，一共: 2872 房子\n",
      "小区楼盘 296: 10 房子，一共: 2882 房子\n",
      "小区楼盘 297: 8 房子，一共: 2890 房子\n",
      "小区楼盘 298: 10 房子，一共: 2900 房子\n",
      "小区楼盘 299: 10 房子，一共: 2910 房子\n",
      "小区楼盘 300: 9 房子，一共: 2919 房子\n",
      "小区楼盘 301: 10 房子，一共: 2929 房子\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "小区楼盘 302: 10 房子，一共: 2939 房子\n",
      "小区楼盘 303: 10 房子，一共: 2949 房子\n",
      "小区楼盘 304: 10 房子，一共: 2959 房子\n",
      "小区楼盘 305: 10 房子，一共: 2969 房子\n",
      "小区楼盘 306: 10 房子，一共: 2979 房子\n",
      "小区楼盘 307: 10 房子，一共: 2989 房子\n",
      "小区楼盘 308: 10 房子，一共: 2999 房子\n",
      "小区楼盘 309: 10 房子，一共: 3009 房子\n",
      "小区楼盘 310: 10 房子，一共: 3019 房子\n",
      "小区楼盘 311: 10 房子，一共: 3029 房子\n",
      "小区楼盘 312: 10 房子，一共: 3039 房子\n",
      "小区楼盘 313: 10 房子，一共: 3049 房子\n",
      "小区楼盘 314: 10 房子，一共: 3059 房子\n",
      "小区楼盘 315: 10 房子，一共: 3069 房子\n",
      "小区楼盘 316: 10 房子，一共: 3079 房子\n",
      "小区楼盘 317: 10 房子，一共: 3089 房子\n",
      "小区楼盘 318: 10 房子，一共: 3099 房子\n",
      "小区楼盘 319: 10 房子，一共: 3109 房子\n",
      "小区楼盘 320: 10 房子，一共: 3119 房子\n",
      "小区楼盘 321: 10 房子，一共: 3129 房子\n",
      "小区楼盘 322: 10 房子，一共: 3139 房子\n",
      "小区楼盘 323: 10 房子，一共: 3149 房子\n",
      "小区楼盘 324: 10 房子，一共: 3159 房子\n",
      "小区楼盘 325: 10 房子，一共: 3169 房子\n",
      "小区楼盘 326: 10 房子，一共: 3179 房子\n",
      "小区楼盘 327: 7 房子，一共: 3186 房子\n",
      "小区楼盘 328: 10 房子，一共: 3196 房子\n",
      "小区楼盘 329: 10 房子，一共: 3206 房子\n",
      "小区楼盘 330: 7 房子，一共: 3213 房子\n",
      "小区楼盘 331: 10 房子，一共: 3223 房子\n",
      "小区楼盘 332: 10 房子，一共: 3233 房子\n",
      "小区楼盘 333: 10 房子，一共: 3243 房子\n",
      "小区楼盘 334: 10 房子，一共: 3253 房子\n",
      "小区楼盘 335: 10 房子，一共: 3263 房子\n",
      "小区楼盘 336: 10 房子，一共: 3273 房子\n",
      "小区楼盘 337: 10 房子，一共: 3283 房子\n",
      "小区楼盘 338: 10 房子，一共: 3293 房子\n",
      "小区楼盘 339: 10 房子，一共: 3303 房子\n",
      "小区楼盘 340: 10 房子，一共: 3313 房子\n",
      "小区楼盘 341: 10 房子，一共: 3323 房子\n",
      "小区楼盘 342: 10 房子，一共: 3333 房子\n",
      "小区楼盘 343: 10 房子，一共: 3343 房子\n",
      "小区楼盘 344: 10 房子，一共: 3353 房子\n",
      "小区楼盘 345: 10 房子，一共: 3363 房子\n",
      "小区楼盘 346: 10 房子，一共: 3373 房子\n",
      "小区楼盘 347: 10 房子，一共: 3383 房子\n",
      "小区楼盘 348: 10 房子，一共: 3393 房子\n",
      "小区楼盘 349: 10 房子，一共: 3403 房子\n",
      "小区楼盘 350: 10 房子，一共: 3413 房子\n",
      "小区楼盘 351: 10 房子，一共: 3423 房子\n",
      "小区楼盘 352: 10 房子，一共: 3433 房子\n",
      "小区楼盘 353: 10 房子，一共: 3443 房子\n",
      "小区楼盘 354: 10 房子，一共: 3453 房子\n",
      "小区楼盘 355: 10 房子，一共: 3463 房子\n",
      "小区楼盘 356: 10 房子，一共: 3473 房子\n",
      "小区楼盘 357: 10 房子，一共: 3483 房子\n",
      "小区楼盘 358: 10 房子，一共: 3493 房子\n",
      "小区楼盘 359: 10 房子，一共: 3503 房子\n",
      "小区楼盘 360: 9 房子，一共: 3512 房子\n",
      "小区楼盘 361: 10 房子，一共: 3522 房子\n",
      "小区楼盘 362: 10 房子，一共: 3532 房子\n",
      "小区楼盘 363: 10 房子，一共: 3542 房子\n",
      "小区楼盘 364: 10 房子，一共: 3552 房子\n",
      "小区楼盘 365: 10 房子，一共: 3562 房子\n",
      "小区楼盘 366: 10 房子，一共: 3572 房子\n",
      "小区楼盘 367: 10 房子，一共: 3582 房子\n",
      "小区楼盘 368: 10 房子，一共: 3592 房子\n",
      "小区楼盘 369: 10 房子，一共: 3602 房子\n",
      "小区楼盘 370: 10 房子，一共: 3612 房子\n",
      "小区楼盘 371: 10 房子，一共: 3622 房子\n",
      "小区楼盘 372: 10 房子，一共: 3632 房子\n",
      "小区楼盘 373: 10 房子，一共: 3642 房子\n",
      "小区楼盘 374: 10 房子，一共: 3652 房子\n",
      "小区楼盘 375: 10 房子，一共: 3662 房子\n",
      "小区楼盘 376: 10 房子，一共: 3672 房子\n",
      "小区楼盘 377: 10 房子，一共: 3682 房子\n",
      "小区楼盘 378: 10 房子，一共: 3692 房子\n",
      "小区楼盘 379: 10 房子，一共: 3702 房子\n",
      "小区楼盘 380: 10 房子，一共: 3712 房子\n",
      "小区楼盘 381: 10 房子，一共: 3722 房子\n",
      "小区楼盘 382: 10 房子，一共: 3732 房子\n",
      "小区楼盘 383: 10 房子，一共: 3742 房子\n",
      "小区楼盘 384: 10 房子，一共: 3752 房子\n",
      "小区楼盘 385: 10 房子，一共: 3762 房子\n",
      "小区楼盘 386: 10 房子，一共: 3772 房子\n",
      "小区楼盘 387: 10 房子，一共: 3782 房子\n",
      "小区楼盘 388: 10 房子，一共: 3792 房子\n",
      "小区楼盘 389: 10 房子，一共: 3802 房子\n",
      "小区楼盘 390: 10 房子，一共: 3812 房子\n",
      "小区楼盘 391: 10 房子，一共: 3822 房子\n",
      "小区楼盘 392: 10 房子，一共: 3832 房子\n",
      "小区楼盘 393: 10 房子，一共: 3842 房子\n",
      "小区楼盘 394: 10 房子，一共: 3852 房子\n",
      "小区楼盘 395: 10 房子，一共: 3862 房子\n",
      "小区楼盘 396: 10 房子，一共: 3872 房子\n",
      "小区楼盘 397: 10 房子，一共: 3882 房子\n",
      "小区楼盘 398: 10 房子，一共: 3892 房子\n",
      "小区楼盘 399: 10 房子，一共: 3902 房子\n",
      "小区楼盘 400: 4 房子，一共: 3906 房子\n",
      "小区楼盘 401: 10 房子，一共: 3916 房子\n",
      "小区楼盘 402: 9 房子，一共: 3925 房子\n",
      "小区楼盘 403: 10 房子，一共: 3935 房子\n",
      "小区楼盘 404: 10 房子，一共: 3945 房子\n",
      "小区楼盘 405: 10 房子，一共: 3955 房子\n",
      "小区楼盘 406: 10 房子，一共: 3965 房子\n",
      "小区楼盘 407: 10 房子，一共: 3975 房子\n",
      "小区楼盘 408: 10 房子，一共: 3985 房子\n",
      "小区楼盘 409: 10 房子，一共: 3995 房子\n",
      "小区楼盘 410: 10 房子，一共: 4005 房子\n",
      "小区楼盘 411: 10 房子，一共: 4015 房子\n",
      "小区楼盘 412: 10 房子，一共: 4025 房子\n",
      "小区楼盘 413: 10 房子，一共: 4035 房子\n",
      "小区楼盘 414: 10 房子，一共: 4045 房子\n",
      "小区楼盘 415: 10 房子，一共: 4055 房子\n",
      "小区楼盘 416: 10 房子，一共: 4065 房子\n",
      "小区楼盘 417: 10 房子，一共: 4075 房子\n",
      "小区楼盘 418: 10 房子，一共: 4085 房子\n",
      "小区楼盘 419: 10 房子，一共: 4095 房子\n",
      "小区楼盘 420: 10 房子，一共: 4105 房子\n",
      "小区楼盘 421: 10 房子，一共: 4115 房子\n",
      "小区楼盘 422: 10 房子，一共: 4125 房子\n",
      "小区楼盘 423: 10 房子，一共: 4135 房子\n",
      "小区楼盘 424: 10 房子，一共: 4145 房子\n",
      "小区楼盘 425: 10 房子，一共: 4155 房子\n",
      "小区楼盘 426: 10 房子，一共: 4165 房子\n",
      "小区楼盘 427: 10 房子，一共: 4175 房子\n",
      "小区楼盘 428: 10 房子，一共: 4185 房子\n",
      "小区楼盘 429: 10 房子，一共: 4195 房子\n",
      "小区楼盘 430: 10 房子，一共: 4205 房子\n",
      "小区楼盘 431: 10 房子，一共: 4215 房子\n",
      "小区楼盘 432: 10 房子，一共: 4225 房子\n",
      "小区楼盘 433: 10 房子，一共: 4235 房子\n",
      "小区楼盘 434: 10 房子，一共: 4245 房子\n",
      "小区楼盘 435: 10 房子，一共: 4255 房子\n",
      "小区楼盘 436: 10 房子，一共: 4265 房子\n",
      "小区楼盘 437: 10 房子，一共: 4275 房子\n",
      "小区楼盘 438: 10 房子，一共: 4285 房子\n",
      "小区楼盘 439: 10 房子，一共: 4295 房子\n",
      "小区楼盘 440: 10 房子，一共: 4305 房子\n",
      "小区楼盘 441: 10 房子，一共: 4315 房子\n",
      "小区楼盘 442: 10 房子，一共: 4325 房子\n",
      "小区楼盘 443: 10 房子，一共: 4335 房子\n",
      "小区楼盘 444: 10 房子，一共: 4345 房子\n",
      "小区楼盘 445: 8 房子，一共: 4353 房子\n",
      "小区楼盘 446: 10 房子，一共: 4363 房子\n",
      "小区楼盘 447: 10 房子，一共: 4373 房子\n",
      "小区楼盘 448: 10 房子，一共: 4383 房子\n",
      "小区楼盘 449: 10 房子，一共: 4393 房子\n",
      "小区楼盘 450: 10 房子，一共: 4403 房子\n",
      "小区楼盘 451: 10 房子，一共: 4413 房子\n",
      "小区楼盘 452: 10 房子，一共: 4423 房子\n",
      "小区楼盘 453: 10 房子，一共: 4433 房子\n",
      "小区楼盘 454: 10 房子，一共: 4443 房子\n",
      "小区楼盘 455: 10 房子，一共: 4453 房子\n",
      "小区楼盘 456: 10 房子，一共: 4463 房子\n",
      "小区楼盘 457: 10 房子，一共: 4473 房子\n",
      "小区楼盘 458: 10 房子，一共: 4483 房子\n",
      "小区楼盘 459: 10 房子，一共: 4493 房子\n",
      "小区楼盘 460: 10 房子，一共: 4503 房子\n",
      "小区楼盘 461: 10 房子，一共: 4513 房子\n",
      "小区楼盘 462: 10 房子，一共: 4523 房子\n",
      "小区楼盘 463: 10 房子，一共: 4533 房子\n",
      "小区楼盘 464: 10 房子，一共: 4543 房子\n",
      "小区楼盘 465: 10 房子，一共: 4553 房子\n",
      "小区楼盘 466: 10 房子，一共: 4563 房子\n",
      "小区楼盘 467: 10 房子，一共: 4573 房子\n",
      "小区楼盘 468: 10 房子，一共: 4583 房子\n",
      "小区楼盘 469: 10 房子，一共: 4593 房子\n",
      "小区楼盘 470: 10 房子，一共: 4603 房子\n",
      "小区楼盘 471: 10 房子，一共: 4613 房子\n",
      "小区楼盘 472: 10 房子，一共: 4623 房子\n",
      "小区楼盘 473: 10 房子，一共: 4633 房子\n",
      "小区楼盘 474: 8 房子，一共: 4641 房子\n",
      "小区楼盘 475: 10 房子，一共: 4651 房子\n",
      "小区楼盘 476: 10 房子，一共: 4661 房子\n",
      "小区楼盘 477: 10 房子，一共: 4671 房子\n",
      "小区楼盘 478: 10 房子，一共: 4681 房子\n",
      "小区楼盘 479: 10 房子，一共: 4691 房子\n",
      "小区楼盘 480: 10 房子，一共: 4701 房子\n",
      "小区楼盘 481: 10 房子，一共: 4711 房子\n",
      "小区楼盘 482: 10 房子，一共: 4721 房子\n",
      "小区楼盘 483: 10 房子，一共: 4731 房子\n",
      "小区楼盘 484: 10 房子，一共: 4741 房子\n",
      "小区楼盘 485: 10 房子，一共: 4751 房子\n",
      "小区楼盘 486: 10 房子，一共: 4761 房子\n",
      "小区楼盘 487: 10 房子，一共: 4771 房子\n",
      "小区楼盘 488: 10 房子，一共: 4781 房子\n",
      "小区楼盘 489: 10 房子，一共: 4791 房子\n",
      "小区楼盘 490: 10 房子，一共: 4801 房子\n",
      "小区楼盘 491: 10 房子，一共: 4811 房子\n",
      "小区楼盘 492: 10 房子，一共: 4821 房子\n",
      "小区楼盘 493: 10 房子，一共: 4831 房子\n",
      "小区楼盘 494: 10 房子，一共: 4841 房子\n",
      "小区楼盘 495: 10 房子，一共: 4851 房子\n",
      "小区楼盘 496: 10 房子，一共: 4861 房子\n",
      "小区楼盘 497: 10 房子，一共: 4871 房子\n",
      "小区楼盘 498: 10 房子，一共: 4881 房子\n",
      "小区楼盘 499: 10 房子，一共: 4891 房子\n",
      "小区楼盘 500: 10 房子，一共: 4901 房子\n",
      "小区楼盘 501: 10 房子，一共: 4911 房子\n",
      "小区楼盘 502: 10 房子，一共: 4921 房子\n",
      "小区楼盘 503: 10 房子，一共: 4931 房子\n",
      "小区楼盘 504: 10 房子，一共: 4941 房子\n",
      "小区楼盘 505: 5 房子，一共: 4946 房子\n",
      "小区楼盘 506: 10 房子，一共: 4956 房子\n",
      "小区楼盘 507: 10 房子，一共: 4966 房子\n",
      "小区楼盘 508: 5 房子，一共: 4971 房子\n",
      "小区楼盘 509: 10 房子，一共: 4981 房子\n",
      "小区楼盘 510: 10 房子，一共: 4991 房子\n",
      "小区楼盘 511: 10 房子，一共: 5001 房子\n",
      "小区楼盘 512: 3 房子，一共: 5004 房子\n",
      "小区楼盘 513: 10 房子，一共: 5014 房子\n",
      "小区楼盘 514: 10 房子，一共: 5024 房子\n",
      "小区楼盘 515: 10 房子，一共: 5034 房子\n",
      "小区楼盘 516: 10 房子，一共: 5044 房子\n",
      "小区楼盘 517: 10 房子，一共: 5054 房子\n",
      "小区楼盘 518: 10 房子，一共: 5064 房子\n",
      "小区楼盘 519: 10 房子，一共: 5074 房子\n",
      "小区楼盘 520: 10 房子，一共: 5084 房子\n",
      "小区楼盘 521: 10 房子，一共: 5094 房子\n",
      "小区楼盘 522: 10 房子，一共: 5104 房子\n",
      "小区楼盘 523: 10 房子，一共: 5114 房子\n",
      "小区楼盘 524: 10 房子，一共: 5124 房子\n",
      "小区楼盘 525: 10 房子，一共: 5134 房子\n",
      "小区楼盘 526: 10 房子，一共: 5144 房子\n",
      "小区楼盘 527: 10 房子，一共: 5154 房子\n",
      "小区楼盘 528: 10 房子，一共: 5164 房子\n",
      "小区楼盘 529: 10 房子，一共: 5174 房子\n",
      "小区楼盘 530: 10 房子，一共: 5184 房子\n",
      "小区楼盘 531: 10 房子，一共: 5194 房子\n",
      "小区楼盘 532: 10 房子，一共: 5204 房子\n",
      "小区楼盘 533: 10 房子，一共: 5214 房子\n",
      "小区楼盘 534: 10 房子，一共: 5224 房子\n",
      "小区楼盘 535: 10 房子，一共: 5234 房子\n",
      "小区楼盘 536: 10 房子，一共: 5244 房子\n",
      "小区楼盘 537: 10 房子，一共: 5254 房子\n",
      "小区楼盘 538: 10 房子，一共: 5264 房子\n",
      "小区楼盘 539: 10 房子，一共: 5274 房子\n",
      "小区楼盘 540: 10 房子，一共: 5284 房子\n",
      "小区楼盘 541: 10 房子，一共: 5294 房子\n",
      "小区楼盘 542: 10 房子，一共: 5304 房子\n",
      "小区楼盘 543: 10 房子，一共: 5314 房子\n",
      "小区楼盘 544: 10 房子，一共: 5324 房子\n",
      "小区楼盘 545: 10 房子，一共: 5334 房子\n",
      "小区楼盘 546: 10 房子，一共: 5344 房子\n",
      "小区楼盘 547: 10 房子，一共: 5354 房子\n",
      "小区楼盘 548: 10 房子，一共: 5364 房子\n",
      "小区楼盘 549: 10 房子，一共: 5374 房子\n",
      "小区楼盘 550: 10 房子，一共: 5384 房子\n",
      "小区楼盘 551: 10 房子，一共: 5394 房子\n",
      "小区楼盘 552: 10 房子，一共: 5404 房子\n",
      "小区楼盘 553: 8 房子，一共: 5412 房子\n",
      "小区楼盘 554: 6 房子，一共: 5418 房子\n",
      "小区楼盘 555: 10 房子，一共: 5428 房子\n",
      "小区楼盘 556: 10 房子，一共: 5438 房子\n",
      "小区楼盘 557: 10 房子，一共: 5448 房子\n",
      "小区楼盘 558: 10 房子，一共: 5458 房子\n",
      "小区楼盘 559: 10 房子，一共: 5468 房子\n",
      "小区楼盘 560: 10 房子，一共: 5478 房子\n",
      "小区楼盘 561: 3 房子，一共: 5481 房子\n",
      "小区楼盘 562: 10 房子，一共: 5491 房子\n",
      "小区楼盘 563: 10 房子，一共: 5501 房子\n",
      "小区楼盘 564: 10 房子，一共: 5511 房子\n",
      "小区楼盘 565: 10 房子，一共: 5521 房子\n",
      "小区楼盘 566: 10 房子，一共: 5531 房子\n",
      "小区楼盘 567: 10 房子，一共: 5541 房子\n",
      "小区楼盘 568: 10 房子，一共: 5551 房子\n",
      "小区楼盘 569: 10 房子，一共: 5561 房子\n",
      "小区楼盘 570: 10 房子，一共: 5571 房子\n",
      "小区楼盘 571: 10 房子，一共: 5581 房子\n",
      "小区楼盘 572: 10 房子，一共: 5591 房子\n",
      "小区楼盘 573: 10 房子，一共: 5601 房子\n",
      "小区楼盘 574: 10 房子，一共: 5611 房子\n",
      "小区楼盘 575: 10 房子，一共: 5621 房子\n",
      "小区楼盘 576: 10 房子，一共: 5631 房子\n",
      "小区楼盘 577: 10 房子，一共: 5641 房子\n",
      "小区楼盘 578: 10 房子，一共: 5651 房子\n",
      "小区楼盘 579: 10 房子，一共: 5661 房子\n",
      "小区楼盘 580: 10 房子，一共: 5671 房子\n",
      "小区楼盘 581: 7 房子，一共: 5678 房子\n",
      "小区楼盘 582: 10 房子，一共: 5688 房子\n",
      "小区楼盘 583: 10 房子，一共: 5698 房子\n",
      "小区楼盘 584: 10 房子，一共: 5708 房子\n",
      "小区楼盘 585: 10 房子，一共: 5718 房子\n",
      "小区楼盘 586: 10 房子，一共: 5728 房子\n",
      "小区楼盘 587: 10 房子，一共: 5738 房子\n",
      "小区楼盘 588: 10 房子，一共: 5748 房子\n",
      "小区楼盘 589: 10 房子，一共: 5758 房子\n",
      "小区楼盘 590: 10 房子，一共: 5768 房子\n",
      "小区楼盘 591: 10 房子，一共: 5778 房子\n",
      "小区楼盘 592: 10 房子，一共: 5788 房子\n",
      "小区楼盘 593: 10 房子，一共: 5798 房子\n",
      "小区楼盘 594: 10 房子，一共: 5808 房子\n",
      "小区楼盘 595: 10 房子，一共: 5818 房子\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "小区楼盘 596: 10 房子，一共: 5828 房子\n",
      "小区楼盘 597: 10 房子，一共: 5838 房子\n",
      "小区楼盘 598: 5 房子，一共: 5843 房子\n",
      "小区楼盘 599: 6 房子，一共: 5849 房子\n",
      "小区楼盘 600: 10 房子，一共: 5859 房子\n",
      "小区楼盘 601: 10 房子，一共: 5869 房子\n",
      "小区楼盘 602: 10 房子，一共: 5879 房子\n",
      "小区楼盘 603: 10 房子，一共: 5889 房子\n",
      "小区楼盘 604: 10 房子，一共: 5899 房子\n",
      "小区楼盘 605: 10 房子，一共: 5909 房子\n",
      "小区楼盘 606: 10 房子，一共: 5919 房子\n",
      "小区楼盘 607: 10 房子，一共: 5929 房子\n",
      "小区楼盘 608: 10 房子，一共: 5939 房子\n",
      "小区楼盘 609: 10 房子，一共: 5949 房子\n",
      "小区楼盘 610: 10 房子，一共: 5959 房子\n",
      "小区楼盘 611: 10 房子，一共: 5969 房子\n",
      "小区楼盘 612: 10 房子，一共: 5979 房子\n",
      "小区楼盘 613: 10 房子，一共: 5989 房子\n",
      "小区楼盘 614: 10 房子，一共: 5999 房子\n",
      "小区楼盘 615: 10 房子，一共: 6009 房子\n",
      "小区楼盘 616: 7 房子，一共: 6016 房子\n",
      "小区楼盘 617: 10 房子，一共: 6026 房子\n",
      "小区楼盘 618: 3 房子，一共: 6029 房子\n",
      "小区楼盘 619: 10 房子，一共: 6039 房子\n",
      "小区楼盘 620: 10 房子，一共: 6049 房子\n",
      "小区楼盘 621: 10 房子，一共: 6059 房子\n",
      "小区楼盘 622: 10 房子，一共: 6069 房子\n",
      "小区楼盘 623: 10 房子，一共: 6079 房子\n",
      "小区楼盘 624: 10 房子，一共: 6089 房子\n",
      "小区楼盘 625: 10 房子，一共: 6099 房子\n",
      "小区楼盘 626: 10 房子，一共: 6109 房子\n",
      "小区楼盘 627: 10 房子，一共: 6119 房子\n",
      "小区楼盘 628: 10 房子，一共: 6129 房子\n",
      "小区楼盘 629: 10 房子，一共: 6139 房子\n",
      "小区楼盘 630: 10 房子，一共: 6149 房子\n",
      "小区楼盘 631: 10 房子，一共: 6159 房子\n",
      "小区楼盘 632: 10 房子，一共: 6169 房子\n",
      "小区楼盘 633: 10 房子，一共: 6179 房子\n",
      "小区楼盘 634: 10 房子，一共: 6189 房子\n",
      "小区楼盘 635: 10 房子，一共: 6199 房子\n",
      "小区楼盘 636: 10 房子，一共: 6209 房子\n",
      "小区楼盘 637: 10 房子，一共: 6219 房子\n",
      "小区楼盘 638: 10 房子，一共: 6229 房子\n",
      "小区楼盘 639: 10 房子，一共: 6239 房子\n",
      "小区楼盘 640: 10 房子，一共: 6249 房子\n",
      "小区楼盘 641: 10 房子，一共: 6259 房子\n",
      "小区楼盘 642: 10 房子，一共: 6269 房子\n",
      "小区楼盘 643: 10 房子，一共: 6279 房子\n",
      "小区楼盘 644: 10 房子，一共: 6289 房子\n",
      "小区楼盘 645: 10 房子，一共: 6299 房子\n",
      "小区楼盘 646: 10 房子，一共: 6309 房子\n",
      "小区楼盘 647: 10 房子，一共: 6319 房子\n",
      "小区楼盘 648: 10 房子，一共: 6329 房子\n",
      "小区楼盘 649: 10 房子，一共: 6339 房子\n",
      "小区楼盘 650: 10 房子，一共: 6349 房子\n",
      "小区楼盘 651: 10 房子，一共: 6359 房子\n",
      "小区楼盘 652: 10 房子，一共: 6369 房子\n",
      "小区楼盘 653: 10 房子，一共: 6379 房子\n",
      "小区楼盘 654: 9 房子，一共: 6388 房子\n",
      "小区楼盘 655: 10 房子，一共: 6398 房子\n",
      "小区楼盘 656: 10 房子，一共: 6408 房子\n",
      "小区楼盘 657: 8 房子，一共: 6416 房子\n",
      "小区楼盘 658: 10 房子，一共: 6426 房子\n",
      "小区楼盘 659: 10 房子，一共: 6436 房子\n",
      "小区楼盘 660: 10 房子，一共: 6446 房子\n",
      "小区楼盘 661: 10 房子，一共: 6456 房子\n",
      "小区楼盘 662: 10 房子，一共: 6466 房子\n",
      "小区楼盘 663: 10 房子，一共: 6476 房子\n",
      "小区楼盘 664: 10 房子，一共: 6486 房子\n",
      "小区楼盘 665: 10 房子，一共: 6496 房子\n",
      "小区楼盘 666: 10 房子，一共: 6506 房子\n",
      "小区楼盘 667: 10 房子，一共: 6516 房子\n",
      "小区楼盘 668: 10 房子，一共: 6526 房子\n",
      "小区楼盘 669: 10 房子，一共: 6536 房子\n",
      "小区楼盘 670: 10 房子，一共: 6546 房子\n",
      "小区楼盘 671: 10 房子，一共: 6556 房子\n",
      "小区楼盘 672: 10 房子，一共: 6566 房子\n",
      "小区楼盘 673: 10 房子，一共: 6576 房子\n",
      "小区楼盘 674: 10 房子，一共: 6586 房子\n",
      "小区楼盘 675: 10 房子，一共: 6596 房子\n",
      "小区楼盘 676: 10 房子，一共: 6606 房子\n",
      "小区楼盘 677: 10 房子，一共: 6616 房子\n",
      "小区楼盘 678: 10 房子，一共: 6626 房子\n",
      "小区楼盘 679: 10 房子，一共: 6636 房子\n",
      "小区楼盘 680: 10 房子，一共: 6646 房子\n",
      "小区楼盘 681: 10 房子，一共: 6656 房子\n",
      "小区楼盘 682: 10 房子，一共: 6666 房子\n",
      "小区楼盘 683: 10 房子，一共: 6676 房子\n",
      "小区楼盘 684: 10 房子，一共: 6686 房子\n",
      "小区楼盘 685: 10 房子，一共: 6696 房子\n",
      "小区楼盘 686: 10 房子，一共: 6706 房子\n",
      "小区楼盘 687: 10 房子，一共: 6716 房子\n",
      "小区楼盘 688: 10 房子，一共: 6726 房子\n",
      "小区楼盘 689: 10 房子，一共: 6736 房子\n",
      "小区楼盘 690: 10 房子，一共: 6746 房子\n",
      "小区楼盘 691: 10 房子，一共: 6756 房子\n",
      "小区楼盘 692: 10 房子，一共: 6766 房子\n",
      "小区楼盘 693: 10 房子，一共: 6776 房子\n",
      "小区楼盘 694: 10 房子，一共: 6786 房子\n",
      "小区楼盘 695: 10 房子，一共: 6796 房子\n",
      "小区楼盘 696: 10 房子，一共: 6806 房子\n",
      "小区楼盘 697: 10 房子，一共: 6816 房子\n",
      "小区楼盘 698: 10 房子，一共: 6826 房子\n",
      "小区楼盘 699: 10 房子，一共: 6836 房子\n",
      "小区楼盘 700: 10 房子，一共: 6846 房子\n",
      "小区楼盘 701: 10 房子，一共: 6856 房子\n",
      "小区楼盘 702: 10 房子，一共: 6866 房子\n",
      "小区楼盘 703: 10 房子，一共: 6876 房子\n",
      "小区楼盘 704: 10 房子，一共: 6886 房子\n",
      "小区楼盘 705: 10 房子，一共: 6896 房子\n",
      "小区楼盘 706: 10 房子，一共: 6906 房子\n",
      "小区楼盘 707: 10 房子，一共: 6916 房子\n",
      "小区楼盘 708: 10 房子，一共: 6926 房子\n",
      "小区楼盘 709: 10 房子，一共: 6936 房子\n",
      "小区楼盘 710: 10 房子，一共: 6946 房子\n",
      "小区楼盘 711: 10 房子，一共: 6956 房子\n",
      "小区楼盘 712: 10 房子，一共: 6966 房子\n",
      "小区楼盘 713: 10 房子，一共: 6976 房子\n",
      "小区楼盘 714: 10 房子，一共: 6986 房子\n",
      "小区楼盘 715: 10 房子，一共: 6996 房子\n",
      "小区楼盘 716: 10 房子，一共: 7006 房子\n",
      "小区楼盘 717: 10 房子，一共: 7016 房子\n",
      "小区楼盘 718: 10 房子，一共: 7026 房子\n",
      "小区楼盘 719: 10 房子，一共: 7036 房子\n",
      "小区楼盘 720: 10 房子，一共: 7046 房子\n",
      "小区楼盘 721: 6 房子，一共: 7052 房子\n",
      "小区楼盘 722: 10 房子，一共: 7062 房子\n",
      "小区楼盘 723: 10 房子，一共: 7072 房子\n",
      "小区楼盘 724: 10 房子，一共: 7082 房子\n",
      "小区楼盘 725: 10 房子，一共: 7092 房子\n",
      "小区楼盘 726: 10 房子，一共: 7102 房子\n",
      "小区楼盘 727: 10 房子，一共: 7112 房子\n",
      "小区楼盘 728: 10 房子，一共: 7122 房子\n",
      "小区楼盘 729: 10 房子，一共: 7132 房子\n",
      "小区楼盘 730: 10 房子，一共: 7142 房子\n",
      "小区楼盘 731: 10 房子，一共: 7152 房子\n",
      "小区楼盘 732: 10 房子，一共: 7162 房子\n",
      "小区楼盘 733: 10 房子，一共: 7172 房子\n",
      "小区楼盘 734: 10 房子，一共: 7182 房子\n",
      "小区楼盘 735: 10 房子，一共: 7192 房子\n",
      "小区楼盘 736: 10 房子，一共: 7202 房子\n",
      "小区楼盘 737: 10 房子，一共: 7212 房子\n",
      "小区楼盘 738: 10 房子，一共: 7222 房子\n",
      "小区楼盘 739: 10 房子，一共: 7232 房子\n",
      "小区楼盘 740: 10 房子，一共: 7242 房子\n",
      "小区楼盘 741: 10 房子，一共: 7252 房子\n",
      "小区楼盘 742: 10 房子，一共: 7262 房子\n",
      "小区楼盘 743: 10 房子，一共: 7272 房子\n",
      "小区楼盘 744: 10 房子，一共: 7282 房子\n",
      "小区楼盘 745: 10 房子，一共: 7292 房子\n",
      "小区楼盘 746: 7 房子，一共: 7299 房子\n",
      "小区楼盘 747: 10 房子，一共: 7309 房子\n",
      "小区楼盘 748: 10 房子，一共: 7319 房子\n",
      "小区楼盘 749: 10 房子，一共: 7329 房子\n",
      "小区楼盘 750: 10 房子，一共: 7339 房子\n",
      "小区楼盘 751: 10 房子，一共: 7349 房子\n",
      "小区楼盘 752: 10 房子，一共: 7359 房子\n",
      "小区楼盘 753: 10 房子，一共: 7369 房子\n",
      "小区楼盘 754: 10 房子，一共: 7379 房子\n",
      "小区楼盘 755: 10 房子，一共: 7389 房子\n",
      "小区楼盘 756: 10 房子，一共: 7399 房子\n",
      "小区楼盘 757: 10 房子，一共: 7409 房子\n",
      "小区楼盘 758: 10 房子，一共: 7419 房子\n",
      "小区楼盘 759: 4 房子，一共: 7423 房子\n",
      "小区楼盘 760: 7 房子，一共: 7430 房子\n",
      "小区楼盘 761: 10 房子，一共: 7440 房子\n",
      "小区楼盘 762: 10 房子，一共: 7450 房子\n",
      "小区楼盘 763: 10 房子，一共: 7460 房子\n",
      "小区楼盘 764: 10 房子，一共: 7470 房子\n",
      "小区楼盘 765: 10 房子，一共: 7480 房子\n",
      "小区楼盘 766: 10 房子，一共: 7490 房子\n",
      "小区楼盘 767: 10 房子，一共: 7500 房子\n",
      "小区楼盘 768: 10 房子，一共: 7510 房子\n",
      "小区楼盘 769: 10 房子，一共: 7520 房子\n",
      "小区楼盘 770: 10 房子，一共: 7530 房子\n",
      "小区楼盘 771: 10 房子，一共: 7540 房子\n",
      "小区楼盘 772: 10 房子，一共: 7550 房子\n",
      "小区楼盘 773: 10 房子，一共: 7560 房子\n",
      "小区楼盘 774: 9 房子，一共: 7569 房子\n",
      "小区楼盘 775: 10 房子，一共: 7579 房子\n",
      "小区楼盘 776: 10 房子，一共: 7589 房子\n",
      "小区楼盘 777: 10 房子，一共: 7599 房子\n",
      "小区楼盘 778: 10 房子，一共: 7609 房子\n",
      "小区楼盘 779: 10 房子，一共: 7619 房子\n",
      "小区楼盘 780: 10 房子，一共: 7629 房子\n",
      "小区楼盘 781: 10 房子，一共: 7639 房子\n",
      "小区楼盘 782: 10 房子，一共: 7649 房子\n",
      "小区楼盘 783: 10 房子，一共: 7659 房子\n",
      "小区楼盘 784: 10 房子，一共: 7669 房子\n",
      "小区楼盘 785: 10 房子，一共: 7679 房子\n",
      "小区楼盘 786: 7 房子，一共: 7686 房子\n",
      "小区楼盘 787: 10 房子，一共: 7696 房子\n",
      "小区楼盘 788: 3 房子，一共: 7699 房子\n",
      "小区楼盘 789: 5 房子，一共: 7704 房子\n",
      "小区楼盘 790: 10 房子，一共: 7714 房子\n",
      "小区楼盘 791: 10 房子，一共: 7724 房子\n",
      "小区楼盘 792: 10 房子，一共: 7734 房子\n",
      "小区楼盘 793: 10 房子，一共: 7744 房子\n",
      "小区楼盘 794: 10 房子，一共: 7754 房子\n",
      "小区楼盘 795: 10 房子，一共: 7764 房子\n",
      "小区楼盘 796: 10 房子，一共: 7774 房子\n",
      "小区楼盘 797: 10 房子，一共: 7784 房子\n",
      "小区楼盘 798: 10 房子，一共: 7794 房子\n",
      "小区楼盘 799: 10 房子，一共: 7804 房子\n",
      "小区楼盘 800: 6 房子，一共: 7810 房子\n",
      "小区楼盘 801: 10 房子，一共: 7820 房子\n",
      "小区楼盘 802: 10 房子，一共: 7830 房子\n",
      "小区楼盘 803: 10 房子，一共: 7840 房子\n",
      "小区楼盘 804: 10 房子，一共: 7850 房子\n",
      "小区楼盘 805: 10 房子，一共: 7860 房子\n",
      "小区楼盘 806: 10 房子，一共: 7870 房子\n",
      "小区楼盘 807: 10 房子，一共: 7880 房子\n",
      "小区楼盘 808: 6 房子，一共: 7886 房子\n",
      "小区楼盘 809: 10 房子，一共: 7896 房子\n",
      "小区楼盘 810: 10 房子，一共: 7906 房子\n",
      "小区楼盘 811: 10 房子，一共: 7916 房子\n",
      "小区楼盘 812: 10 房子，一共: 7926 房子\n",
      "小区楼盘 813: 10 房子，一共: 7936 房子\n",
      "小区楼盘 814: 10 房子，一共: 7946 房子\n",
      "小区楼盘 815: 10 房子，一共: 7956 房子\n",
      "小区楼盘 816: 10 房子，一共: 7966 房子\n",
      "小区楼盘 817: 10 房子，一共: 7976 房子\n",
      "小区楼盘 818: 10 房子，一共: 7986 房子\n",
      "小区楼盘 819: 10 房子，一共: 7996 房子\n",
      "小区楼盘 820: 8 房子，一共: 8004 房子\n",
      "小区楼盘 821: 10 房子，一共: 8014 房子\n",
      "小区楼盘 822: 10 房子，一共: 8024 房子\n",
      "小区楼盘 823: 10 房子，一共: 8034 房子\n",
      "小区楼盘 824: 10 房子，一共: 8044 房子\n",
      "小区楼盘 825: 10 房子，一共: 8054 房子\n",
      "小区楼盘 826: 10 房子，一共: 8064 房子\n",
      "小区楼盘 827: 10 房子，一共: 8074 房子\n",
      "小区楼盘 828: 10 房子，一共: 8084 房子\n",
      "小区楼盘 829: 10 房子，一共: 8094 房子\n",
      "小区楼盘 830: 10 房子，一共: 8104 房子\n",
      "小区楼盘 831: 6 房子，一共: 8110 房子\n",
      "小区楼盘 832: 10 房子，一共: 8120 房子\n",
      "小区楼盘 833: 10 房子，一共: 8130 房子\n",
      "小区楼盘 834: 10 房子，一共: 8140 房子\n",
      "小区楼盘 835: 10 房子，一共: 8150 房子\n",
      "小区楼盘 836: 5 房子，一共: 8155 房子\n",
      "小区楼盘 837: 10 房子，一共: 8165 房子\n",
      "小区楼盘 838: 10 房子，一共: 8175 房子\n",
      "小区楼盘 839: 10 房子，一共: 8185 房子\n",
      "小区楼盘 840: 10 房子，一共: 8195 房子\n",
      "小区楼盘 841: 10 房子，一共: 8205 房子\n",
      "小区楼盘 842: 10 房子，一共: 8215 房子\n",
      "小区楼盘 843: 10 房子，一共: 8225 房子\n",
      "小区楼盘 844: 10 房子，一共: 8235 房子\n",
      "小区楼盘 845: 10 房子，一共: 8245 房子\n",
      "小区楼盘 846: 10 房子，一共: 8255 房子\n",
      "小区楼盘 847: 10 房子，一共: 8265 房子\n",
      "小区楼盘 848: 10 房子，一共: 8275 房子\n",
      "小区楼盘 849: 10 房子，一共: 8285 房子\n",
      "小区楼盘 850: 10 房子，一共: 8295 房子\n",
      "小区楼盘 851: 10 房子，一共: 8305 房子\n",
      "小区楼盘 852: 10 房子，一共: 8315 房子\n",
      "小区楼盘 853: 10 房子，一共: 8325 房子\n",
      "小区楼盘 854: 10 房子，一共: 8335 房子\n",
      "小区楼盘 855: 10 房子，一共: 8345 房子\n",
      "小区楼盘 856: 10 房子，一共: 8355 房子\n",
      "小区楼盘 857: 10 房子，一共: 8365 房子\n",
      "小区楼盘 858: 10 房子，一共: 8375 房子\n",
      "小区楼盘 859: 10 房子，一共: 8385 房子\n",
      "小区楼盘 860: 10 房子，一共: 8395 房子\n",
      "小区楼盘 861: 10 房子，一共: 8405 房子\n",
      "小区楼盘 862: 10 房子，一共: 8415 房子\n",
      "小区楼盘 863: 10 房子，一共: 8425 房子\n",
      "小区楼盘 864: 10 房子，一共: 8435 房子\n",
      "小区楼盘 865: 10 房子，一共: 8445 房子\n",
      "小区楼盘 866: 10 房子，一共: 8455 房子\n",
      "小区楼盘 867: 10 房子，一共: 8465 房子\n",
      "小区楼盘 868: 10 房子，一共: 8475 房子\n",
      "小区楼盘 869: 10 房子，一共: 8485 房子\n",
      "小区楼盘 870: 10 房子，一共: 8495 房子\n",
      "小区楼盘 871: 10 房子，一共: 8505 房子\n",
      "小区楼盘 872: 8 房子，一共: 8513 房子\n",
      "小区楼盘 873: 10 房子，一共: 8523 房子\n",
      "小区楼盘 874: 10 房子，一共: 8533 房子\n",
      "小区楼盘 875: 10 房子，一共: 8543 房子\n",
      "小区楼盘 876: 10 房子，一共: 8553 房子\n",
      "小区楼盘 877: 8 房子，一共: 8561 房子\n",
      "小区楼盘 878: 10 房子，一共: 8571 房子\n",
      "小区楼盘 879: 8 房子，一共: 8579 房子\n",
      "小区楼盘 880: 10 房子，一共: 8589 房子\n",
      "小区楼盘 881: 10 房子，一共: 8599 房子\n",
      "小区楼盘 882: 10 房子，一共: 8609 房子\n",
      "小区楼盘 883: 10 房子，一共: 8619 房子\n",
      "小区楼盘 884: 10 房子，一共: 8629 房子\n",
      "小区楼盘 885: 10 房子，一共: 8639 房子\n",
      "小区楼盘 886: 10 房子，一共: 8649 房子\n",
      "小区楼盘 887: 10 房子，一共: 8659 房子\n",
      "小区楼盘 888: 10 房子，一共: 8669 房子\n",
      "小区楼盘 889: 10 房子，一共: 8679 房子\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "小区楼盘 890: 10 房子，一共: 8689 房子\n",
      "小区楼盘 891: 10 房子，一共: 8699 房子\n",
      "小区楼盘 892: 10 房子，一共: 8709 房子\n",
      "小区楼盘 893: 10 房子，一共: 8719 房子\n",
      "小区楼盘 894: 10 房子，一共: 8729 房子\n",
      "小区楼盘 895: 10 房子，一共: 8739 房子\n",
      "小区楼盘 896: 10 房子，一共: 8749 房子\n",
      "小区楼盘 897: 10 房子，一共: 8759 房子\n",
      "小区楼盘 898: 10 房子，一共: 8769 房子\n",
      "小区楼盘 899: 10 房子，一共: 8779 房子\n",
      "小区楼盘 900: 10 房子，一共: 8789 房子\n",
      "小区楼盘 901: 10 房子，一共: 8799 房子\n",
      "小区楼盘 902: 10 房子，一共: 8809 房子\n",
      "小区楼盘 903: 10 房子，一共: 8819 房子\n",
      "小区楼盘 904: 10 房子，一共: 8829 房子\n",
      "小区楼盘 905: 10 房子，一共: 8839 房子\n",
      "小区楼盘 906: 10 房子，一共: 8849 房子\n",
      "小区楼盘 907: 10 房子，一共: 8859 房子\n",
      "小区楼盘 908: 7 房子，一共: 8866 房子\n",
      "小区楼盘 909: 10 房子，一共: 8876 房子\n",
      "小区楼盘 910: 10 房子，一共: 8886 房子\n",
      "小区楼盘 911: 10 房子，一共: 8896 房子\n",
      "小区楼盘 912: 10 房子，一共: 8906 房子\n",
      "小区楼盘 913: 10 房子，一共: 8916 房子\n",
      "小区楼盘 914: 10 房子，一共: 8926 房子\n",
      "小区楼盘 915: 10 房子，一共: 8936 房子\n",
      "小区楼盘 916: 10 房子，一共: 8946 房子\n",
      "小区楼盘 917: 8 房子，一共: 8954 房子\n",
      "小区楼盘 918: 10 房子，一共: 8964 房子\n",
      "小区楼盘 919: 10 房子，一共: 8974 房子\n",
      "小区楼盘 920: 10 房子，一共: 8984 房子\n",
      "小区楼盘 921: 10 房子，一共: 8994 房子\n",
      "小区楼盘 922: 10 房子，一共: 9004 房子\n",
      "小区楼盘 923: 10 房子，一共: 9014 房子\n",
      "小区楼盘 924: 10 房子，一共: 9024 房子\n",
      "小区楼盘 925: 10 房子，一共: 9034 房子\n",
      "小区楼盘 926: 10 房子，一共: 9044 房子\n",
      "小区楼盘 927: 3 房子，一共: 9047 房子\n",
      "小区楼盘 928: 10 房子，一共: 9057 房子\n",
      "小区楼盘 929: 10 房子，一共: 9067 房子\n",
      "小区楼盘 930: 10 房子，一共: 9077 房子\n",
      "小区楼盘 931: 10 房子，一共: 9087 房子\n",
      "小区楼盘 932: 10 房子，一共: 9097 房子\n",
      "小区楼盘 933: 10 房子，一共: 9107 房子\n",
      "小区楼盘 934: 10 房子，一共: 9117 房子\n",
      "小区楼盘 935: 10 房子，一共: 9127 房子\n",
      "小区楼盘 936: 10 房子，一共: 9137 房子\n",
      "小区楼盘 937: 10 房子，一共: 9147 房子\n",
      "小区楼盘 938: 10 房子，一共: 9157 房子\n",
      "小区楼盘 939: 10 房子，一共: 9167 房子\n",
      "小区楼盘 940: 10 房子，一共: 9177 房子\n",
      "小区楼盘 941: 10 房子，一共: 9187 房子\n",
      "小区楼盘 942: 10 房子，一共: 9197 房子\n",
      "小区楼盘 943: 10 房子，一共: 9207 房子\n",
      "小区楼盘 944: 10 房子，一共: 9217 房子\n",
      "小区楼盘 945: 10 房子，一共: 9227 房子\n",
      "小区楼盘 946: 10 房子，一共: 9237 房子\n",
      "小区楼盘 947: 10 房子，一共: 9247 房子\n",
      "小区楼盘 948: 10 房子，一共: 9257 房子\n",
      "小区楼盘 949: 10 房子，一共: 9267 房子\n",
      "小区楼盘 950: 10 房子，一共: 9277 房子\n",
      "小区楼盘 951: 6 房子，一共: 9283 房子\n",
      "小区楼盘 952: 6 房子，一共: 9289 房子\n",
      "小区楼盘 953: 10 房子，一共: 9299 房子\n",
      "小区楼盘 954: 10 房子，一共: 9309 房子\n",
      "小区楼盘 955: 10 房子，一共: 9319 房子\n",
      "小区楼盘 956: 10 房子，一共: 9329 房子\n",
      "小区楼盘 957: 3 房子，一共: 9332 房子\n",
      "小区楼盘 958: 10 房子，一共: 9342 房子\n",
      "小区楼盘 959: 10 房子，一共: 9352 房子\n",
      "小区楼盘 960: 10 房子，一共: 9362 房子\n",
      "小区楼盘 961: 10 房子，一共: 9372 房子\n",
      "小区楼盘 962: 10 房子，一共: 9382 房子\n",
      "小区楼盘 963: 10 房子，一共: 9392 房子\n",
      "小区楼盘 964: 10 房子，一共: 9402 房子\n",
      "小区楼盘 965: 10 房子，一共: 9412 房子\n",
      "小区楼盘 966: 10 房子，一共: 9422 房子\n",
      "小区楼盘 967: 10 房子，一共: 9432 房子\n",
      "小区楼盘 968: 10 房子，一共: 9442 房子\n",
      "小区楼盘 969: 10 房子，一共: 9452 房子\n",
      "小区楼盘 970: 10 房子，一共: 9462 房子\n",
      "小区楼盘 971: 10 房子，一共: 9472 房子\n",
      "小区楼盘 972: 10 房子，一共: 9482 房子\n",
      "小区楼盘 973: 10 房子，一共: 9492 房子\n",
      "小区楼盘 974: 10 房子，一共: 9502 房子\n",
      "小区楼盘 975: 10 房子，一共: 9512 房子\n",
      "小区楼盘 976: 10 房子，一共: 9522 房子\n",
      "小区楼盘 977: 10 房子，一共: 9532 房子\n",
      "小区楼盘 978: 10 房子，一共: 9542 房子\n",
      "小区楼盘 979: 10 房子，一共: 9552 房子\n",
      "小区楼盘 980: 10 房子，一共: 9562 房子\n",
      "小区楼盘 981: 10 房子，一共: 9572 房子\n",
      "小区楼盘 982: 10 房子，一共: 9582 房子\n",
      "小区楼盘 983: 10 房子，一共: 9592 房子\n",
      "小区楼盘 984: 10 房子，一共: 9602 房子\n",
      "小区楼盘 985: 10 房子，一共: 9612 房子\n",
      "小区楼盘 986: 10 房子，一共: 9622 房子\n",
      "小区楼盘 987: 10 房子，一共: 9632 房子\n",
      "小区楼盘 988: 10 房子，一共: 9642 房子\n",
      "小区楼盘 989: 10 房子，一共: 9652 房子\n",
      "小区楼盘 990: 10 房子，一共: 9662 房子\n",
      "小区楼盘 991: 10 房子，一共: 9672 房子\n",
      "小区楼盘 992: 10 房子，一共: 9682 房子\n",
      "小区楼盘 993: 10 房子，一共: 9692 房子\n",
      "小区楼盘 994: 10 房子，一共: 9702 房子\n",
      "小区楼盘 995: 10 房子，一共: 9712 房子\n",
      "小区楼盘 996: 10 房子，一共: 9722 房子\n",
      "小区楼盘 997: 10 房子，一共: 9732 房子\n",
      "小区楼盘 998: 10 房子，一共: 9742 房子\n",
      "小区楼盘 999: 10 房子，一共: 9752 房子\n",
      "小区楼盘 1000: 10 房子，一共: 9762 房子\n",
      "小区楼盘 1001: 10 房子，一共: 9772 房子\n",
      "小区楼盘 1002: 10 房子，一共: 9782 房子\n",
      "小区楼盘 1003: 10 房子，一共: 9792 房子\n",
      "小区楼盘 1004: 10 房子，一共: 9802 房子\n",
      "小区楼盘 1005: 10 房子，一共: 9812 房子\n",
      "小区楼盘 1006: 10 房子，一共: 9822 房子\n",
      "小区楼盘 1007: 10 房子，一共: 9832 房子\n",
      "小区楼盘 1008: 2 房子，一共: 9834 房子\n",
      "小区楼盘 1009: 10 房子，一共: 9844 房子\n",
      "小区楼盘 1010: 10 房子，一共: 9854 房子\n",
      "小区楼盘 1011: 10 房子，一共: 9864 房子\n",
      "小区楼盘 1012: 10 房子，一共: 9874 房子\n",
      "小区楼盘 1013: 10 房子，一共: 9884 房子\n",
      "小区楼盘 1014: 10 房子，一共: 9894 房子\n",
      "小区楼盘 1015: 10 房子，一共: 9904 房子\n",
      "小区楼盘 1016: 10 房子，一共: 9914 房子\n",
      "小区楼盘 1017: 10 房子，一共: 9924 房子\n",
      "小区楼盘 1018: 5 房子，一共: 9929 房子\n",
      "小区楼盘 1019: 10 房子，一共: 9939 房子\n",
      "小区楼盘 1020: 10 房子，一共: 9949 房子\n",
      "小区楼盘 1021: 10 房子，一共: 9959 房子\n",
      "小区楼盘 1022: 10 房子，一共: 9969 房子\n",
      "小区楼盘 1023: 10 房子，一共: 9979 房子\n",
      "小区楼盘 1024: 10 房子，一共: 9989 房子\n",
      "小区楼盘 1025: 10 房子，一共: 9999 房子\n",
      "小区楼盘 1026: 10 房子，一共: 10009 房子\n",
      "小区楼盘 1027: 10 房子，一共: 10019 房子\n",
      "小区楼盘 1028: 10 房子，一共: 10029 房子\n",
      "小区楼盘 1029: 10 房子，一共: 10039 房子\n",
      "小区楼盘 1030: 10 房子，一共: 10049 房子\n",
      "小区楼盘 1031: 9 房子，一共: 10058 房子\n",
      "小区楼盘 1032: 10 房子，一共: 10068 房子\n",
      "小区楼盘 1033: 10 房子，一共: 10078 房子\n",
      "小区楼盘 1034: 10 房子，一共: 10088 房子\n",
      "小区楼盘 1035: 10 房子，一共: 10098 房子\n",
      "小区楼盘 1036: 10 房子，一共: 10108 房子\n",
      "小区楼盘 1037: 10 房子，一共: 10118 房子\n",
      "小区楼盘 1038: 10 房子，一共: 10128 房子\n",
      "小区楼盘 1039: 10 房子，一共: 10138 房子\n",
      "小区楼盘 1040: 10 房子，一共: 10148 房子\n",
      "小区楼盘 1041: 10 房子，一共: 10158 房子\n",
      "小区楼盘 1042: 10 房子，一共: 10168 房子\n",
      "小区楼盘 1043: 10 房子，一共: 10178 房子\n",
      "小区楼盘 1044: 10 房子，一共: 10188 房子\n",
      "小区楼盘 1045: 10 房子，一共: 10198 房子\n",
      "小区楼盘 1046: 10 房子，一共: 10208 房子\n",
      "小区楼盘 1047: 6 房子，一共: 10214 房子\n",
      "小区楼盘 1048: 9 房子，一共: 10223 房子\n",
      "小区楼盘 1049: 10 房子，一共: 10233 房子\n",
      "小区楼盘 1050: 10 房子，一共: 10243 房子\n",
      "小区楼盘 1051: 10 房子，一共: 10253 房子\n",
      "小区楼盘 1052: 10 房子，一共: 10263 房子\n",
      "小区楼盘 1053: 10 房子，一共: 10273 房子\n",
      "小区楼盘 1054: 10 房子，一共: 10283 房子\n",
      "小区楼盘 1055: 10 房子，一共: 10293 房子\n",
      "小区楼盘 1056: 10 房子，一共: 10303 房子\n",
      "小区楼盘 1057: 8 房子，一共: 10311 房子\n",
      "小区楼盘 1058: 10 房子，一共: 10321 房子\n",
      "小区楼盘 1059: 7 房子，一共: 10328 房子\n",
      "小区楼盘 1060: 10 房子，一共: 10338 房子\n",
      "小区楼盘 1061: 10 房子，一共: 10348 房子\n",
      "小区楼盘 1062: 10 房子，一共: 10358 房子\n",
      "小区楼盘 1063: 10 房子，一共: 10368 房子\n",
      "小区楼盘 1064: 10 房子，一共: 10378 房子\n",
      "小区楼盘 1065: 10 房子，一共: 10388 房子\n",
      "小区楼盘 1066: 7 房子，一共: 10395 房子\n",
      "小区楼盘 1067: 10 房子，一共: 10405 房子\n",
      "小区楼盘 1068: 10 房子，一共: 10415 房子\n",
      "小区楼盘 1069: 10 房子，一共: 10425 房子\n",
      "小区楼盘 1070: 10 房子，一共: 10435 房子\n",
      "小区楼盘 1071: 10 房子，一共: 10445 房子\n",
      "小区楼盘 1072: 10 房子，一共: 10455 房子\n",
      "小区楼盘 1073: 2 房子，一共: 10457 房子\n",
      "小区楼盘 1074: 10 房子，一共: 10467 房子\n",
      "小区楼盘 1075: 10 房子，一共: 10477 房子\n",
      "小区楼盘 1076: 10 房子，一共: 10487 房子\n",
      "小区楼盘 1077: 10 房子，一共: 10497 房子\n",
      "小区楼盘 1078: 10 房子，一共: 10507 房子\n",
      "小区楼盘 1079: 10 房子，一共: 10517 房子\n",
      "小区楼盘 1080: 10 房子，一共: 10527 房子\n",
      "小区楼盘 1081: 10 房子，一共: 10537 房子\n",
      "小区楼盘 1082: 10 房子，一共: 10547 房子\n",
      "小区楼盘 1083: 10 房子，一共: 10557 房子\n",
      "小区楼盘 1084: 10 房子，一共: 10567 房子\n",
      "小区楼盘 1085: 10 房子，一共: 10577 房子\n",
      "小区楼盘 1086: 10 房子，一共: 10587 房子\n",
      "小区楼盘 1087: 10 房子，一共: 10597 房子\n",
      "小区楼盘 1088: 10 房子，一共: 10607 房子\n",
      "小区楼盘 1089: 10 房子，一共: 10617 房子\n",
      "小区楼盘 1090: 10 房子，一共: 10627 房子\n",
      "小区楼盘 1091: 10 房子，一共: 10637 房子\n",
      "小区楼盘 1092: 10 房子，一共: 10647 房子\n",
      "小区楼盘 1093: 10 房子，一共: 10657 房子\n",
      "小区楼盘 1094: 10 房子，一共: 10667 房子\n",
      "小区楼盘 1095: 10 房子，一共: 10677 房子\n",
      "小区楼盘 1096: 10 房子，一共: 10687 房子\n",
      "小区楼盘 1097: 10 房子，一共: 10697 房子\n",
      "小区楼盘 1098: 10 房子，一共: 10707 房子\n",
      "小区楼盘 1099: 10 房子，一共: 10717 房子\n",
      "小区楼盘 1100: 10 房子，一共: 10727 房子\n",
      "小区楼盘 1101: 10 房子，一共: 10737 房子\n",
      "小区楼盘 1102: 10 房子，一共: 10747 房子\n",
      "小区楼盘 1103: 10 房子，一共: 10757 房子\n",
      "小区楼盘 1104: 10 房子，一共: 10767 房子\n",
      "小区楼盘 1105: 10 房子，一共: 10777 房子\n",
      "小区楼盘 1106: 10 房子，一共: 10787 房子\n",
      "小区楼盘 1107: 10 房子，一共: 10797 房子\n",
      "小区楼盘 1108: 10 房子，一共: 10807 房子\n",
      "小区楼盘 1109: 10 房子，一共: 10817 房子\n",
      "小区楼盘 1110: 10 房子，一共: 10827 房子\n",
      "小区楼盘 1111: 9 房子，一共: 10836 房子\n",
      "小区楼盘 1112: 10 房子，一共: 10846 房子\n",
      "小区楼盘 1113: 10 房子，一共: 10856 房子\n",
      "小区楼盘 1114: 10 房子，一共: 10866 房子\n",
      "小区楼盘 1115: 10 房子，一共: 10876 房子\n",
      "小区楼盘 1116: 10 房子，一共: 10886 房子\n",
      "小区楼盘 1117: 10 房子，一共: 10896 房子\n",
      "小区楼盘 1118: 10 房子，一共: 10906 房子\n",
      "小区楼盘 1119: 10 房子，一共: 10916 房子\n",
      "小区楼盘 1120: 10 房子，一共: 10926 房子\n",
      "小区楼盘 1121: 5 房子，一共: 10931 房子\n",
      "小区楼盘 1122: 8 房子，一共: 10939 房子\n",
      "小区楼盘 1123: 10 房子，一共: 10949 房子\n",
      "小区楼盘 1124: 10 房子，一共: 10959 房子\n",
      "小区楼盘 1125: 10 房子，一共: 10969 房子\n",
      "小区楼盘 1126: 10 房子，一共: 10979 房子\n",
      "小区楼盘 1127: 10 房子，一共: 10989 房子\n",
      "小区楼盘 1128: 10 房子，一共: 10999 房子\n",
      "小区楼盘 1129: 10 房子，一共: 11009 房子\n",
      "小区楼盘 1130: 10 房子，一共: 11019 房子\n",
      "小区楼盘 1131: 10 房子，一共: 11029 房子\n",
      "小区楼盘 1132: 10 房子，一共: 11039 房子\n",
      "小区楼盘 1133: 8 房子，一共: 11047 房子\n",
      "小区楼盘 1134: 10 房子，一共: 11057 房子\n",
      "小区楼盘 1135: 10 房子，一共: 11067 房子\n",
      "小区楼盘 1136: 10 房子，一共: 11077 房子\n",
      "小区楼盘 1137: 10 房子，一共: 11087 房子\n",
      "小区楼盘 1138: 10 房子，一共: 11097 房子\n",
      "小区楼盘 1139: 10 房子，一共: 11107 房子\n",
      "小区楼盘 1140: 10 房子，一共: 11117 房子\n",
      "小区楼盘 1141: 10 房子，一共: 11127 房子\n",
      "小区楼盘 1142: 10 房子，一共: 11137 房子\n",
      "小区楼盘 1143: 10 房子，一共: 11147 房子\n",
      "小区楼盘 1144: 10 房子，一共: 11157 房子\n",
      "小区楼盘 1145: 10 房子，一共: 11167 房子\n",
      "小区楼盘 1146: 10 房子，一共: 11177 房子\n",
      "小区楼盘 1147: 10 房子，一共: 11187 房子\n",
      "小区楼盘 1148: 10 房子，一共: 11197 房子\n",
      "小区楼盘 1149: 10 房子，一共: 11207 房子\n",
      "小区楼盘 1150: 10 房子，一共: 11217 房子\n",
      "小区楼盘 1151: 10 房子，一共: 11227 房子\n",
      "小区楼盘 1152: 10 房子，一共: 11237 房子\n",
      "小区楼盘 1153: 10 房子，一共: 11247 房子\n",
      "小区楼盘 1154: 10 房子，一共: 11257 房子\n",
      "小区楼盘 1155: 10 房子，一共: 11267 房子\n",
      "小区楼盘 1156: 10 房子，一共: 11277 房子\n",
      "小区楼盘 1157: 10 房子，一共: 11287 房子\n",
      "小区楼盘 1158: 10 房子，一共: 11297 房子\n",
      "小区楼盘 1159: 10 房子，一共: 11307 房子\n",
      "小区楼盘 1160: 10 房子，一共: 11317 房子\n",
      "小区楼盘 1161: 10 房子，一共: 11327 房子\n",
      "小区楼盘 1162: 10 房子，一共: 11337 房子\n",
      "小区楼盘 1163: 10 房子，一共: 11347 房子\n",
      "小区楼盘 1164: 10 房子，一共: 11357 房子\n",
      "小区楼盘 1165: 10 房子，一共: 11367 房子\n",
      "小区楼盘 1166: 10 房子，一共: 11377 房子\n",
      "小区楼盘 1167: 10 房子，一共: 11387 房子\n",
      "小区楼盘 1168: 10 房子，一共: 11397 房子\n",
      "小区楼盘 1169: 10 房子，一共: 11407 房子\n",
      "小区楼盘 1170: 10 房子，一共: 11417 房子\n",
      "小区楼盘 1171: 10 房子，一共: 11427 房子\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "小区楼盘 1172: 10 房子，一共: 11437 房子\n",
      "小区楼盘 1173: 10 房子，一共: 11447 房子\n",
      "小区楼盘 1174: 10 房子，一共: 11457 房子\n",
      "小区楼盘 1175: 10 房子，一共: 11467 房子\n",
      "小区楼盘 1176: 10 房子，一共: 11477 房子\n",
      "小区楼盘 1177: 10 房子，一共: 11487 房子\n",
      "小区楼盘 1178: 10 房子，一共: 11497 房子\n",
      "小区楼盘 1179: 10 房子，一共: 11507 房子\n",
      "小区楼盘 1180: 10 房子，一共: 11517 房子\n",
      "小区楼盘 1181: 10 房子，一共: 11527 房子\n",
      "小区楼盘 1182: 10 房子，一共: 11537 房子\n",
      "小区楼盘 1183: 10 房子，一共: 11547 房子\n",
      "小区楼盘 1184: 10 房子，一共: 11557 房子\n",
      "小区楼盘 1185: 10 房子，一共: 11567 房子\n",
      "小区楼盘 1186: 10 房子，一共: 11577 房子\n",
      "小区楼盘 1187: 10 房子，一共: 11587 房子\n",
      "小区楼盘 1188: 10 房子，一共: 11597 房子\n",
      "小区楼盘 1189: 10 房子，一共: 11607 房子\n",
      "小区楼盘 1190: 10 房子，一共: 11617 房子\n",
      "小区楼盘 1191: 10 房子，一共: 11627 房子\n",
      "小区楼盘 1192: 10 房子，一共: 11637 房子\n",
      "小区楼盘 1193: 10 房子，一共: 11647 房子\n",
      "小区楼盘 1194: 10 房子，一共: 11657 房子\n",
      "小区楼盘 1195: 10 房子，一共: 11667 房子\n",
      "小区楼盘 1196: 10 房子，一共: 11677 房子\n",
      "小区楼盘 1197: 10 房子，一共: 11687 房子\n",
      "小区楼盘 1198: 10 房子，一共: 11697 房子\n",
      "小区楼盘 1199: 10 房子，一共: 11707 房子\n",
      "小区楼盘 1200: 10 房子，一共: 11717 房子\n",
      "小区楼盘 1201: 10 房子，一共: 11727 房子\n",
      "小区楼盘 1202: 10 房子，一共: 11737 房子\n",
      "小区楼盘 1203: 10 房子，一共: 11747 房子\n",
      "小区楼盘 1204: 10 房子，一共: 11757 房子\n",
      "小区楼盘 1205: 10 房子，一共: 11767 房子\n",
      "小区楼盘 1206: 10 房子，一共: 11777 房子\n",
      "小区楼盘 1207: 10 房子，一共: 11787 房子\n",
      "小区楼盘 1208: 10 房子，一共: 11797 房子\n",
      "小区楼盘 1209: 10 房子，一共: 11807 房子\n",
      "小区楼盘 1210: 10 房子，一共: 11817 房子\n",
      "小区楼盘 1211: 10 房子，一共: 11827 房子\n",
      "小区楼盘 1212: 10 房子，一共: 11837 房子\n",
      "小区楼盘 1213: 10 房子，一共: 11847 房子\n",
      "小区楼盘 1214: 10 房子，一共: 11857 房子\n",
      "小区楼盘 1215: 10 房子，一共: 11867 房子\n",
      "小区楼盘 1216: 10 房子，一共: 11877 房子\n",
      "小区楼盘 1217: 10 房子，一共: 11887 房子\n",
      "小区楼盘 1218: 10 房子，一共: 11897 房子\n",
      "小区楼盘 1219: 10 房子，一共: 11907 房子\n",
      "小区楼盘 1220: 10 房子，一共: 11917 房子\n",
      "小区楼盘 1221: 10 房子，一共: 11927 房子\n",
      "小区楼盘 1222: 10 房子，一共: 11937 房子\n",
      "小区楼盘 1223: 10 房子，一共: 11947 房子\n",
      "小区楼盘 1224: 10 房子，一共: 11957 房子\n",
      "小区楼盘 1225: 10 房子，一共: 11967 房子\n",
      "小区楼盘 1226: 10 房子，一共: 11977 房子\n",
      "小区楼盘 1227: 10 房子，一共: 11987 房子\n",
      "小区楼盘 1228: 10 房子，一共: 11997 房子\n",
      "小区楼盘 1229: 10 房子，一共: 12007 房子\n",
      "小区楼盘 1230: 10 房子，一共: 12017 房子\n",
      "小区楼盘 1231: 10 房子，一共: 12027 房子\n",
      "小区楼盘 1232: 10 房子，一共: 12037 房子\n",
      "小区楼盘 1233: 10 房子，一共: 12047 房子\n",
      "小区楼盘 1234: 10 房子，一共: 12057 房子\n",
      "小区楼盘 1235: 10 房子，一共: 12067 房子\n",
      "小区楼盘 1236: 10 房子，一共: 12077 房子\n",
      "小区楼盘 1237: 10 房子，一共: 12087 房子\n",
      "小区楼盘 1238: 10 房子，一共: 12097 房子\n",
      "小区楼盘 1239: 10 房子，一共: 12107 房子\n",
      "小区楼盘 1240: 10 房子，一共: 12117 房子\n",
      "小区楼盘 1241: 10 房子，一共: 12127 房子\n",
      "小区楼盘 1242: 10 房子，一共: 12137 房子\n",
      "小区楼盘 1243: 10 房子，一共: 12147 房子\n",
      "小区楼盘 1244: 10 房子，一共: 12157 房子\n",
      "小区楼盘 1245: 10 房子，一共: 12167 房子\n",
      "小区楼盘 1246: 10 房子，一共: 12177 房子\n",
      "小区楼盘 1247: 10 房子，一共: 12187 房子\n",
      "小区楼盘 1248: 10 房子，一共: 12197 房子\n",
      "小区楼盘 1249: 10 房子，一共: 12207 房子\n",
      "小区楼盘 1250: 10 房子，一共: 12217 房子\n",
      "小区楼盘 1251: 10 房子，一共: 12227 房子\n",
      "小区楼盘 1252: 6 房子，一共: 12233 房子\n",
      "小区楼盘 1253: 10 房子，一共: 12243 房子\n",
      "小区楼盘 1254: 10 房子，一共: 12253 房子\n",
      "小区楼盘 1255: 4 房子，一共: 12257 房子\n",
      "小区楼盘 1256: 10 房子，一共: 12267 房子\n",
      "小区楼盘 1257: 10 房子，一共: 12277 房子\n",
      "小区楼盘 1258: 10 房子，一共: 12287 房子\n",
      "小区楼盘 1259: 10 房子，一共: 12297 房子\n",
      "小区楼盘 1260: 10 房子，一共: 12307 房子\n",
      "小区楼盘 1261: 10 房子，一共: 12317 房子\n",
      "小区楼盘 1262: 10 房子，一共: 12327 房子\n",
      "小区楼盘 1263: 10 房子，一共: 12337 房子\n",
      "小区楼盘 1264: 10 房子，一共: 12347 房子\n",
      "小区楼盘 1265: 10 房子，一共: 12357 房子\n",
      "小区楼盘 1266: 10 房子，一共: 12367 房子\n",
      "小区楼盘 1267: 10 房子，一共: 12377 房子\n",
      "小区楼盘 1268: 10 房子，一共: 12387 房子\n",
      "小区楼盘 1269: 10 房子，一共: 12397 房子\n",
      "小区楼盘 1270: 10 房子，一共: 12407 房子\n",
      "小区楼盘 1271: 10 房子，一共: 12417 房子\n",
      "小区楼盘 1272: 10 房子，一共: 12427 房子\n",
      "小区楼盘 1273: 10 房子，一共: 12437 房子\n",
      "小区楼盘 1274: 10 房子，一共: 12447 房子\n",
      "小区楼盘 1275: 10 房子，一共: 12457 房子\n",
      "小区楼盘 1276: 10 房子，一共: 12467 房子\n",
      "小区楼盘 1277: 5 房子，一共: 12472 房子\n",
      "小区楼盘 1278: 7 房子，一共: 12479 房子\n",
      "小区楼盘 1279: 10 房子，一共: 12489 房子\n",
      "小区楼盘 1280: 10 房子，一共: 12499 房子\n",
      "小区楼盘 1281: 10 房子，一共: 12509 房子\n",
      "小区楼盘 1282: 10 房子，一共: 12519 房子\n",
      "小区楼盘 1283: 10 房子，一共: 12529 房子\n",
      "小区楼盘 1284: 10 房子，一共: 12539 房子\n",
      "小区楼盘 1285: 10 房子，一共: 12549 房子\n",
      "小区楼盘 1286: 10 房子，一共: 12559 房子\n",
      "小区楼盘 1287: 10 房子，一共: 12569 房子\n",
      "小区楼盘 1288: 10 房子，一共: 12579 房子\n",
      "小区楼盘 1289: 10 房子，一共: 12589 房子\n",
      "小区楼盘 1290: 10 房子，一共: 12599 房子\n",
      "小区楼盘 1291: 10 房子，一共: 12609 房子\n",
      "小区楼盘 1292: 10 房子，一共: 12619 房子\n",
      "小区楼盘 1293: 10 房子，一共: 12629 房子\n",
      "小区楼盘 1294: 10 房子，一共: 12639 房子\n",
      "小区楼盘 1295: 10 房子，一共: 12649 房子\n",
      "小区楼盘 1296: 10 房子，一共: 12659 房子\n",
      "小区楼盘 1297: 10 房子，一共: 12669 房子\n",
      "小区楼盘 1298: 10 房子，一共: 12679 房子\n",
      "小区楼盘 1299: 10 房子，一共: 12689 房子\n",
      "小区楼盘 1300: 10 房子，一共: 12699 房子\n",
      "小区楼盘 1301: 10 房子，一共: 12709 房子\n",
      "小区楼盘 1302: 10 房子，一共: 12719 房子\n",
      "小区楼盘 1303: 8 房子，一共: 12727 房子\n",
      "小区楼盘 1304: 10 房子，一共: 12737 房子\n",
      "小区楼盘 1305: 10 房子，一共: 12747 房子\n",
      "小区楼盘 1306: 10 房子，一共: 12757 房子\n",
      "小区楼盘 1307: 4 房子，一共: 12761 房子\n",
      "小区楼盘 1308: 10 房子，一共: 12771 房子\n",
      "小区楼盘 1309: 10 房子，一共: 12781 房子\n",
      "小区楼盘 1310: 4 房子，一共: 12785 房子\n",
      "小区楼盘 1311: 10 房子，一共: 12795 房子\n",
      "小区楼盘 1312: 10 房子，一共: 12805 房子\n",
      "小区楼盘 1313: 9 房子，一共: 12814 房子\n",
      "小区楼盘 1314: 10 房子，一共: 12824 房子\n",
      "小区楼盘 1315: 10 房子，一共: 12834 房子\n",
      "小区楼盘 1316: 10 房子，一共: 12844 房子\n",
      "小区楼盘 1317: 10 房子，一共: 12854 房子\n",
      "小区楼盘 1318: 10 房子，一共: 12864 房子\n",
      "小区楼盘 1319: 10 房子，一共: 12874 房子\n",
      "小区楼盘 1320: 10 房子，一共: 12884 房子\n",
      "小区楼盘 1321: 10 房子，一共: 12894 房子\n",
      "小区楼盘 1322: 10 房子，一共: 12904 房子\n",
      "小区楼盘 1323: 10 房子，一共: 12914 房子\n",
      "小区楼盘 1324: 7 房子，一共: 12921 房子\n",
      "小区楼盘 1325: 10 房子，一共: 12931 房子\n",
      "小区楼盘 1326: 10 房子，一共: 12941 房子\n",
      "小区楼盘 1327: 10 房子，一共: 12951 房子\n",
      "小区楼盘 1328: 10 房子，一共: 12961 房子\n",
      "小区楼盘 1329: 10 房子，一共: 12971 房子\n",
      "小区楼盘 1330: 10 房子，一共: 12981 房子\n",
      "小区楼盘 1331: 10 房子，一共: 12991 房子\n",
      "小区楼盘 1332: 10 房子，一共: 13001 房子\n",
      "小区楼盘 1333: 10 房子，一共: 13011 房子\n",
      "小区楼盘 1334: 10 房子，一共: 13021 房子\n",
      "小区楼盘 1335: 10 房子，一共: 13031 房子\n",
      "小区楼盘 1336: 10 房子，一共: 13041 房子\n",
      "小区楼盘 1337: 10 房子，一共: 13051 房子\n",
      "小区楼盘 1338: 3 房子，一共: 13054 房子\n",
      "小区楼盘 1339: 10 房子，一共: 13064 房子\n",
      "小区楼盘 1340: 10 房子，一共: 13074 房子\n",
      "小区楼盘 1341: 10 房子，一共: 13084 房子\n",
      "小区楼盘 1342: 10 房子，一共: 13094 房子\n",
      "小区楼盘 1343: 10 房子，一共: 13104 房子\n",
      "小区楼盘 1344: 10 房子，一共: 13114 房子\n",
      "小区楼盘 1345: 6 房子，一共: 13120 房子\n",
      "小区楼盘 1346: 10 房子，一共: 13130 房子\n",
      "小区楼盘 1347: 10 房子，一共: 13140 房子\n",
      "小区楼盘 1348: 10 房子，一共: 13150 房子\n",
      "小区楼盘 1349: 10 房子，一共: 13160 房子\n",
      "小区楼盘 1350: 10 房子，一共: 13170 房子\n",
      "小区楼盘 1351: 10 房子，一共: 13180 房子\n",
      "小区楼盘 1352: 10 房子，一共: 13190 房子\n",
      "小区楼盘 1353: 10 房子，一共: 13200 房子\n",
      "小区楼盘 1354: 10 房子，一共: 13210 房子\n",
      "小区楼盘 1355: 10 房子，一共: 13220 房子\n",
      "小区楼盘 1356: 10 房子，一共: 13230 房子\n",
      "小区楼盘 1357: 10 房子，一共: 13240 房子\n",
      "小区楼盘 1358: 10 房子，一共: 13250 房子\n",
      "小区楼盘 1359: 10 房子，一共: 13260 房子\n",
      "小区楼盘 1360: 10 房子，一共: 13270 房子\n",
      "小区楼盘 1361: 10 房子，一共: 13280 房子\n",
      "小区楼盘 1362: 10 房子，一共: 13290 房子\n",
      "小区楼盘 1363: 10 房子，一共: 13300 房子\n",
      "小区楼盘 1364: 10 房子，一共: 13310 房子\n",
      "小区楼盘 1365: 10 房子，一共: 13320 房子\n",
      "小区楼盘 1366: 10 房子，一共: 13330 房子\n",
      "小区楼盘 1367: 10 房子，一共: 13340 房子\n",
      "小区楼盘 1368: 10 房子，一共: 13350 房子\n",
      "小区楼盘 1369: 10 房子，一共: 13360 房子\n",
      "小区楼盘 1370: 10 房子，一共: 13370 房子\n",
      "小区楼盘 1371: 10 房子，一共: 13380 房子\n",
      "小区楼盘 1372: 10 房子，一共: 13390 房子\n",
      "小区楼盘 1373: 10 房子，一共: 13400 房子\n",
      "小区楼盘 1374: 10 房子，一共: 13410 房子\n",
      "小区楼盘 1375: 10 房子，一共: 13420 房子\n",
      "小区楼盘 1376: 10 房子，一共: 13430 房子\n",
      "小区楼盘 1377: 10 房子，一共: 13440 房子\n",
      "小区楼盘 1378: 10 房子，一共: 13450 房子\n",
      "小区楼盘 1379: 10 房子，一共: 13460 房子\n",
      "小区楼盘 1380: 10 房子，一共: 13470 房子\n",
      "小区楼盘 1381: 10 房子，一共: 13480 房子\n",
      "小区楼盘 1382: 10 房子，一共: 13490 房子\n",
      "小区楼盘 1383: 10 房子，一共: 13500 房子\n",
      "小区楼盘 1384: 10 房子，一共: 13510 房子\n",
      "小区楼盘 1385: 10 房子，一共: 13520 房子\n",
      "小区楼盘 1386: 10 房子，一共: 13530 房子\n",
      "小区楼盘 1387: 7 房子，一共: 13537 房子\n",
      "小区楼盘 1388: 10 房子，一共: 13547 房子\n",
      "小区楼盘 1389: 10 房子，一共: 13557 房子\n",
      "小区楼盘 1390: 10 房子，一共: 13567 房子\n",
      "小区楼盘 1391: 10 房子，一共: 13577 房子\n",
      "小区楼盘 1392: 10 房子，一共: 13587 房子\n",
      "小区楼盘 1393: 10 房子，一共: 13597 房子\n",
      "小区楼盘 1394: 10 房子，一共: 13607 房子\n",
      "小区楼盘 1395: 10 房子，一共: 13617 房子\n",
      "小区楼盘 1396: 10 房子，一共: 13627 房子\n",
      "小区楼盘 1397: 10 房子，一共: 13637 房子\n",
      "小区楼盘 1398: 10 房子，一共: 13647 房子\n",
      "小区楼盘 1399: 10 房子，一共: 13657 房子\n",
      "小区楼盘 1400: 10 房子，一共: 13667 房子\n",
      "小区楼盘 1401: 10 房子，一共: 13677 房子\n",
      "小区楼盘 1402: 10 房子，一共: 13687 房子\n",
      "小区楼盘 1403: 10 房子，一共: 13697 房子\n",
      "小区楼盘 1404: 10 房子，一共: 13707 房子\n",
      "小区楼盘 1405: 10 房子，一共: 13717 房子\n",
      "小区楼盘 1406: 10 房子，一共: 13727 房子\n",
      "小区楼盘 1407: 10 房子，一共: 13737 房子\n",
      "小区楼盘 1408: 10 房子，一共: 13747 房子\n",
      "小区楼盘 1409: 10 房子，一共: 13757 房子\n",
      "小区楼盘 1410: 10 房子，一共: 13767 房子\n",
      "小区楼盘 1411: 10 房子，一共: 13777 房子\n",
      "小区楼盘 1412: 10 房子，一共: 13787 房子\n",
      "小区楼盘 1413: 10 房子，一共: 13797 房子\n",
      "小区楼盘 1414: 10 房子，一共: 13807 房子\n",
      "小区楼盘 1415: 10 房子，一共: 13817 房子\n",
      "小区楼盘 1416: 10 房子，一共: 13827 房子\n",
      "小区楼盘 1417: 10 房子，一共: 13837 房子\n",
      "小区楼盘 1418: 10 房子，一共: 13847 房子\n",
      "小区楼盘 1419: 10 房子，一共: 13857 房子\n",
      "小区楼盘 1420: 10 房子，一共: 13867 房子\n",
      "小区楼盘 1421: 10 房子，一共: 13877 房子\n",
      "小区楼盘 1422: 10 房子，一共: 13887 房子\n",
      "小区楼盘 1423: 10 房子，一共: 13897 房子\n",
      "小区楼盘 1424: 10 房子，一共: 13907 房子\n",
      "小区楼盘 1425: 10 房子，一共: 13917 房子\n",
      "小区楼盘 1426: 10 房子，一共: 13927 房子\n",
      "小区楼盘 1427: 10 房子，一共: 13937 房子\n",
      "小区楼盘 1428: 10 房子，一共: 13947 房子\n",
      "小区楼盘 1429: 10 房子，一共: 13957 房子\n",
      "小区楼盘 1430: 10 房子，一共: 13967 房子\n",
      "小区楼盘 1431: 10 房子，一共: 13977 房子\n",
      "小区楼盘 1432: 10 房子，一共: 13987 房子\n",
      "小区楼盘 1433: 10 房子，一共: 13997 房子\n",
      "小区楼盘 1434: 8 房子，一共: 14005 房子\n",
      "小区楼盘 1435: 10 房子，一共: 14015 房子\n",
      "小区楼盘 1436: 10 房子，一共: 14025 房子\n",
      "小区楼盘 1437: 10 房子，一共: 14035 房子\n",
      "小区楼盘 1438: 10 房子，一共: 14045 房子\n",
      "小区楼盘 1439: 10 房子，一共: 14055 房子\n",
      "小区楼盘 1440: 10 房子，一共: 14065 房子\n",
      "小区楼盘 1441: 10 房子，一共: 14075 房子\n",
      "小区楼盘 1442: 10 房子，一共: 14085 房子\n",
      "小区楼盘 1443: 10 房子，一共: 14095 房子\n",
      "小区楼盘 1444: 1 房子，一共: 14096 房子\n",
      "小区楼盘 1445: 10 房子，一共: 14106 房子\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "小区楼盘 1446: 10 房子，一共: 14116 房子\n",
      "小区楼盘 1447: 10 房子，一共: 14126 房子\n",
      "小区楼盘 1448: 10 房子，一共: 14136 房子\n",
      "小区楼盘 1449: 10 房子，一共: 14146 房子\n",
      "小区楼盘 1450: 10 房子，一共: 14156 房子\n",
      "小区楼盘 1451: 2 房子，一共: 14158 房子\n",
      "小区楼盘 1452: 10 房子，一共: 14168 房子\n",
      "小区楼盘 1453: 10 房子，一共: 14178 房子\n",
      "小区楼盘 1454: 10 房子，一共: 14188 房子\n",
      "小区楼盘 1455: 10 房子，一共: 14198 房子\n",
      "小区楼盘 1456: 10 房子，一共: 14208 房子\n",
      "小区楼盘 1457: 10 房子，一共: 14218 房子\n",
      "小区楼盘 1458: 10 房子，一共: 14228 房子\n",
      "小区楼盘 1459: 10 房子，一共: 14238 房子\n",
      "小区楼盘 1460: 10 房子，一共: 14248 房子\n",
      "小区楼盘 1461: 10 房子，一共: 14258 房子\n",
      "小区楼盘 1462: 10 房子，一共: 14268 房子\n",
      "小区楼盘 1463: 10 房子，一共: 14278 房子\n",
      "小区楼盘 1464: 10 房子，一共: 14288 房子\n",
      "小区楼盘 1465: 10 房子，一共: 14298 房子\n",
      "小区楼盘 1466: 10 房子，一共: 14308 房子\n",
      "CPU times: user 2min 6s, sys: 2.96 s, total: 2min 8s\n",
      "Wall time: 1h 2min 52s\n"
     ]
    }
   ],
   "source": [
    "%%time\n",
    "for i, xqlb_link in enumerate(all_xqlb_links):\n",
    "    house_links = get_all_house_links(xqlb_link)\n",
    "    all_house_links.update(set(house_links))\n",
    "    print('小区楼盘 {}: {} 房子，一共: {} 房子'.format(i, len(house_links), len(all_house_links)))\n",
    "\n",
    "    time.sleep(random.random()+1)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [],
   "source": [
    "all_house_links = list(all_house_links)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "共爬取 14308 套房子链接\n"
     ]
    }
   ],
   "source": [
    "print('共爬取 {} 套房子链接'.format(len(all_house_links)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 109,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_house_info(house_link):\n",
    "    \"\"\"获取房屋的信息\"\"\"\n",
    "    headers = {\n",
    "        'accept': '*/*',\n",
    "        'accept-encoding': 'gzip, deflate, br',\n",
    "        'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',\n",
    "        'cookie': 'sessid=08D91723-37C5-453D-7ABC-8A9BF37F999E; aQQ_ajkguid=68BF0D90-336E-78C7-CA8D-47A5392F562B; lps=http%3A%2F%2Fsuzhou.anjuke.com%2Fmarket%7Chttps%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D7XM-380vWFgagNC5ukas6apKUcXO6ck-cprY021q6qEUIQV0oMmNHwwedazMVSmA%26ck%3D8728.1.8.255.233.269.237.743%26shh%3Dwww.baidu.com%26sht%3D02003390_43_hao_pg%26wd%3D%26eqid%3D8da5d22900033baa000000035e4df41b; ctid=19; twe=2; 58tj_uuid=7a0db2eb-1e28-4f2e-a165-ed315faf38bf; init_refer=https%253A%252F%252Fwww.baidu.com%252Flink%253Furl%253D7XM-380vWFgagNC5ukas6apKUcXO6ck-cprY021q6qEUIQV0oMmNHwwedazMVSmA%2526ck%253D8728.1.8.255.233.269.237.743%2526shh%253Dwww.baidu.com%2526sht%253D02003390_43_hao_pg%2526wd%253D%2526eqid%253D8da5d22900033baa000000035e4df41b; new_uv=1; wmda_uuid=17d51d8b57e81f4365ea91ea0e3f37d0; wmda_new_uuid=1; wmda_session_id_6289197098934=1582167087121-2ec5760c-e8f1-fec0; wmda_visited_projects=%3B6289197098934; als=0; new_session=0; ajk_member_captcha=f1de250c288c0c20646940c4404457f6; _ga=GA1.2.1359141188.1582167400; _gid=GA1.2.146639622.1582167400; browse_comm_ids=781514%7C1000761%7C876459%7C585625%7C165699; _gat=1; xzfzqtoken=r0hEkr3OuP5%2Fb%2F6%2FEnvg58D7DHyZvA48C2EtL19QQCWxQE48bY4bZaOXcIX6NFaFin35brBb%2F%2FeSODvMgkQULA%3D%3D; propertys=vj8uze-q5zgbk_vswql2-q5zg3s_vor26f-q5zfsg_wit9o8-q5zfos_wccvrp-q5zcdl_wl7wfw-q5zc63_',\n",
    "        'referer': house_link,\n",
    "        'sec-fetch-dest': 'empty',\n",
    "        'sec-fetch-mode': 'cors',\n",
    "        'sec-fetch-site': 'same-origin',\n",
    "        'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36'\n",
    "    }\n",
    "\n",
    "    response = requests.get(house_link, headers=headers)\n",
    "    response.encoding = 'utf8'\n",
    "    soup = BeautifulSoup(response.text, 'lxml')\n",
    "    \n",
    "    items = soup.select('li.houseInfo-detail-item')\n",
    "    \n",
    "    house_info = {}\n",
    "    \n",
    "    for item in items:\n",
    "        key, value = item.text.strip().split('：')\n",
    "        house_info[key.strip()] = value.strip().replace('\\n', '').replace('\\t', '')\n",
    "        \n",
    "    locat_text = response.text[response.text.index('百度地图'): response.text.index('配合百度地图的callback使用')]\n",
    "    house_info['经度'] = float(re.findall(r\"lng : \\\"(.+)\\\"\", locat_text)[0])\n",
    "    house_info['纬度'] = float(re.findall(r\"lat : \\\"(.+)\\\"\", locat_text)[0])\n",
    "    del house_info['所在位置']\n",
    "    \n",
    "    house_info['链接'] = house_link\n",
    "    \n",
    "    covers = soup.select('div.img_wrap')\n",
    "    for cover in covers:\n",
    "        if cover['class'] == ['img_wrap']:\n",
    "            house_info['图片'] = cover.img['src']\n",
    "            break\n",
    "        else:\n",
    "            house_info['图片'] = 'https://pic1.ajkimg.com/display/anjuke/2907e2-%E5%B8%86%E6%B6%9B%E6%88%BF%E4%BA%A7/13b404a528ce426f8961cc68a595ca06-599x450.jpg?t=1'\n",
    "    \n",
    "    return house_info\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 115,
   "metadata": {},
   "outputs": [],
   "source": [
    "all_house_infos = []"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 117,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "for house_link in all_house_links:\n",
    "    try:\n",
    "        house_info = get_house_info(house_link)\n",
    "        all_house_infos.append(house_info)\n",
    "    except:\n",
    "        pass\n",
    "    time.sleep(1.1)\n",
    "    print(len(all_house_infos))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open('all_house_infos.txt', 'w') as f:\n",
    "    f.writelines([json.dumps(h)+'\\n' for h in all_house_infos])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "     133 all_house_infos.txt\r\n"
     ]
    }
   ],
   "source": [
    "!wc -l all_house_infos.txt"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 数据清洗"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [],
   "source": [
    "import sqlite3\n",
    "import json"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open('all_house_infos.txt', 'r') as f:\n",
    "    all_house_infos = [json.loads(h) for h in f.readlines()]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "133"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(all_house_infos)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [],
   "source": [
    "all_keys = list(all_house_infos[0].keys())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [],
   "source": [
    "for house_info in all_house_infos:\n",
    "    for key in all_keys:\n",
    "        if key not in house_info:\n",
    "            house_info[key] = '暂无'\n",
    "        \n",
    "        if key not in {'房屋单价', '建筑面积', '参考首付', '经度', '纬度'}:\n",
    "            try:\n",
    "                tmp = float(house_info[key])\n",
    "                if tmp:\n",
    "                    house_info[key] = '暂无'\n",
    "            except:\n",
    "                pass\n",
    "            \n",
    "    house_info['房屋单价'] = float(house_info['房屋单价'][:-4].strip())\n",
    "    house_info['建筑面积'] = float(house_info['建筑面积'][:-3].strip())\n",
    "    house_info['参考首付'] = float(house_info['参考首付'][:-1].strip())\n",
    "    \n",
    "    tmp = list(map(int, re.findall(r'(\\d+)', house_info['房屋户型'])))\n",
    "    house_info['房屋户型_室数'] = tmp[0]\n",
    "    house_info['房屋户型_厅数'] = tmp[1]\n",
    "    house_info['房屋户型_卫数'] = tmp[2]\n",
    "    del house_info['房屋户型']\n",
    "    \n",
    "    if '(' not in house_info['所在楼层']:\n",
    "        house_info['所在楼层'] = '底层({})'.format(house_info['所在楼层'])\n",
    "    \n",
    "    house_info['总楼层'] = list(map(int, re.findall(r'(\\d+)', house_info['所在楼层'])))[0]\n",
    "    house_info['所在楼层'] = house_info['所在楼层'][:2]\n",
    "    \n",
    "    house_info['总价'] = house_info['建筑面积'] * house_info['房屋单价']\n",
    "    \n",
    "    if house_info['所在楼层'] == '地下':\n",
    "        house_info['所在楼层'] = '独栋'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "25"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "all_keys = list(all_house_infos[0].keys())\n",
    "len(all_keys)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [],
   "source": [
    "for house_info in all_house_infos:\n",
    "    for key in all_keys:\n",
    "        if house_info[key] == '':\n",
    "            house_info[key] = '暂无'\n",
    "    house_info['经度'] = float(house_info['经度'])\n",
    "    house_info['纬度'] = float(house_info['纬度'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 数据保存到数据库中"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [],
   "source": [
    "conn = sqlite3.connect('all_house_infos.db')\n",
    "cursor = conn.cursor()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [],
   "source": [
    "sql = \"\"\"\n",
    "CREATE TABLE HouseInfo(\n",
    "    所属小区 CHAR(256), \n",
    "    房屋单价 float,\n",
    "    建筑面积 float,\n",
    "    参考首付 float,\n",
    "    建造年代 CHAR(256),\n",
    "    房屋朝向 CHAR(256),\n",
    "    参考月供 CHAR(256),\n",
    "    房屋类型 CHAR(256),\n",
    "    所在楼层 CHAR(256),\n",
    "    装修程度 CHAR(256),\n",
    "    产权年限 CHAR(256), \n",
    "    配套电梯 CHAR(256),\n",
    "    房本年限 CHAR(256),\n",
    "    产权性质 CHAR(256),\n",
    "    唯一住房 CHAR(256),\n",
    "    一手房源 CHAR(256),\n",
    "    经度 float,\n",
    "    纬度 float,\n",
    "    房屋户型_室数 INTEGER,\n",
    "    房屋户型_厅数 INTEGER,\n",
    "    房屋户型_卫数 INTEGER,\n",
    "    总楼层 INTEGER,\n",
    "    总价 float\n",
    ");\n",
    "\"\"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [],
   "source": [
    "cursor.execute(sql)\n",
    "conn.commit()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'INSERT INTO HouseInfo2 (所属小区,房屋单价,建筑面积,参考首付,建造年代,房屋朝向,参考月供,房屋类型,所在楼层,装修程度,产权年限,配套电梯,房本年限,产权性质,唯一住房,一手房源,经度,纬度,链接,图片,房屋户型_室数,房屋户型_厅数,房屋户型_卫数,总楼层,总价) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);'"
      ]
     },
     "execution_count": 67,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sql = \"INSERT INTO HouseInfo ({}) VALUES ({});\".format(','.join(all_keys), ','.join(['?']*len(all_keys)))\n",
    "sql"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {},
   "outputs": [],
   "source": [
    "datas = []\n",
    "\n",
    "for house_info in all_house_infos:\n",
    "    datas.append([house_info[k] for k in all_keys])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [],
   "source": [
    "cursor.executemany(sql, datas)\n",
    "conn.commit()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
